summaryrefslogtreecommitdiff
path: root/services/api/tests/test_api.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:28:14 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:28:14 +0900
commit72d29b4798f2594465f384982f0fc932a1f6c880 (patch)
treea140c639f8595f9631e49f30f38996044b9d3f5f /services/api/tests/test_api.py
parent23e60d37f8f55386ab7c1378a50db11a9c386dc6 (diff)
fix: lint cleanup for API, combined strategy, and formatting
Diffstat (limited to 'services/api/tests/test_api.py')
-rw-r--r--services/api/tests/test_api.py5
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()