mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 13:08:34 +03:00
refactor to use pydantic settings and WAL sqlite mode
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from unittest.mock import AsyncMock, patch
|
||||
from unittest.mock import patch
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
|
||||
def setup_client():
|
||||
from main import app
|
||||
from security import get_token_or_user_auth
|
||||
@@ -10,6 +9,7 @@ def setup_client():
|
||||
app.dependency_overrides[get_token_or_user_auth] = mock_get_token_or_user_auth
|
||||
return TestClient(app), app
|
||||
|
||||
|
||||
@patch("endpoints.task.AsyncResult")
|
||||
def test_get_status_success(mock_async_result):
|
||||
client, app = setup_client()
|
||||
|
||||
Reference in New Issue
Block a user