Unit tests for FastAPI branch

Run via `make test`
This commit is contained in:
Charles Hill
2021-12-04 13:11:45 -06:00
parent d8e4237961
commit 4e6c30a909
19 changed files with 344 additions and 46 deletions
-6
View File
@@ -1,6 +0,0 @@
import pytest
async def test_homepage(client):
r = await client.get("/")
assert b"Add a new wallet" in await r.get_data()
View File
+7
View File
@@ -0,0 +1,7 @@
import pytest
from tests.conftest import client
@pytest.mark.asyncio
async def test_core_views_generic(client):
response = await client.get("/")
assert response.status_code == 200