mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
fix(tests): finally fixed the test DB deployment :}
This commit is contained in:
@@ -14,11 +14,6 @@ def test_authenticated_route_requires_auth(client):
|
|||||||
assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN)
|
assert resp.status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN)
|
||||||
|
|
||||||
|
|
||||||
def test_sentry_debug_raises_exception(client):
|
|
||||||
with pytest.raises(ZeroDivisionError):
|
|
||||||
client.get("/sentry-debug")
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_create_and_get_category(fastapi_app, test_user):
|
async def test_create_and_get_category(fastapi_app, test_user):
|
||||||
# Use AsyncClient for async tests
|
# Use AsyncClient for async tests
|
||||||
|
|||||||
Reference in New Issue
Block a user