From 72d29b4798f2594465f384982f0fc932a1f6c880 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 17:28:14 +0900 Subject: fix: lint cleanup for API, combined strategy, and formatting --- services/api/tests/test_api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'services/api/tests') 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() -- cgit v1.2.3