This commit is contained in:
dderbentsov
2023-07-13 01:25:29 +03:00
commit bc339cefb9
25 changed files with 494 additions and 0 deletions

8
tests/conftest.py Normal file
View File

@@ -0,0 +1,8 @@
from fastapi.testclient import TestClient
import pytest
from personal_info.app import create_app
@pytest.fixture()
def app_client():
app = create_app()
yield TestClient(app)

3
tests/test_app.py Normal file
View File

@@ -0,0 +1,3 @@
def test_health(app_client):
rv = app_client.get('/health')
assert rv.status_code == 200