diff options
Diffstat (limited to 'services/api/tests')
| -rw-r--r-- | services/api/tests/test_api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/api/tests/test_api.py b/services/api/tests/test_api.py index 99cf9e3..669143b 100644 --- a/services/api/tests/test_api.py +++ b/services/api/tests/test_api.py @@ -1,12 +1,13 @@ """Tests for the REST API.""" -import pytest -from unittest.mock import AsyncMock, MagicMock, patch + +from unittest.mock import AsyncMock, patch from fastapi.testclient import TestClient def test_health_endpoint(): """Health endpoint returns ok.""" from trading_api.main import app + # Override lifespan to skip DB with patch("trading_api.main.lifespan") as mock_lifespan: mock_lifespan.return_value.__aenter__ = AsyncMock() |
