Unit tests for FastAPI branch
Run via `make test`
This commit is contained in:
@@ -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()
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user