Setup project, started outlining endpoints and tests.
This commit is contained in:
commit
33cd28376d
41 files changed
+5177
No files matched your search
@@ -0,0 +1,15 @@
|
||||
"""Fixtures to import into tests."""
|
||||
|
||||
from collections.abc import Iterator
|
||||
|
||||
import pytest
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.main import app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client() -> Iterator[TestClient]:
|
||||
"""Client fixture to pass test client with."""
|
||||
with TestClient(app) as client:
|
||||
yield client
|
||||
Reference in new issue
Block a user