refactor to use pydantic settings and WAL sqlite mode

This commit is contained in:
msramalho
2024-10-18 11:08:51 +01:00
parent 11a8e6f4e0
commit ca7e862855
21 changed files with 246 additions and 135 deletions

View File

@@ -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()