first
This commit is contained in:
8
tests/conftest.py
Normal file
8
tests/conftest.py
Normal 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
3
tests/test_app.py
Normal file
@@ -0,0 +1,3 @@
|
||||
def test_health(app_client):
|
||||
rv = app_client.get('/health')
|
||||
assert rv.status_code == 200
|
||||
Reference in New Issue
Block a user