1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-30 00:14:19 +00:00
pds-2021-g2-nest/code/backend/nest_backend/test/test_doa.py
Stefano Pigozzi 3529af69f5
🚧 WIP testing stuff
2021-05-07 21:22:45 +02:00

10 lines
312 B
Python

import pytest
from flask.testing import Client
# noinspection PyShadowingNames
def test_doa(flask_client: Client, access_token: str):
response = flask_client.get("/doa", headers={
"Authorization": f"Bearer {access_token}",
})
assert b"If you see this, the server is fine." in response.data