1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/nest_backend/test/test_0_doa.py

14 lines
440 B
Python
Raw Normal View History

2021-05-07 17:46:14 +00:00
import pytest
from flask.testing import Client
# noinspection PyShadowingNames
2021-05-08 15:02:53 +00:00
def test_doa(flask_client: Client, admin_headers):
response = flask_client.get("/doa", headers=admin_headers)
2021-05-07 17:46:14 +00:00
assert b"If you see this, the server is fine." in response.data
2021-05-28 16:22:50 +00:00
def test_sq_told_me_to_do_this(flask_client: Client, user_headers):
response = flask_client.post("/doa", headers=user_headers)
assert b"Hello there." in response.data