diff --git a/backend/tests/test_services/test_geo_service.py b/backend/tests/test_services/test_geo_service.py index d795350..f2f4ee2 100644 --- a/backend/tests/test_services/test_geo_service.py +++ b/backend/tests/test_services/test_geo_service.py @@ -434,7 +434,14 @@ class TestLookupBatchSingleCommit: """When db=None, no commit is attempted.""" ips = ["1.1.1.1"] batch_response = [ - {"query": "1.1.1.1", "status": "success", "countryCode": "US", "country": "United States", "as": "AS15169", "org": "Google LLC"}, + { + "query": "1.1.1.1", + "status": "success", + "countryCode": "US", + "country": "United States", + "as": "AS15169", + "org": "Google LLC", + }, ] session = _make_batch_session(batch_response) diff --git a/backend/tests/test_services/test_jail_service.py b/backend/tests/test_services/test_jail_service.py index 146ee4b..4f7d144 100644 --- a/backend/tests/test_services/test_jail_service.py +++ b/backend/tests/test_services/test_jail_service.py @@ -583,9 +583,11 @@ class TestUnbanAllIps: async def test_unban_all_ips_raises_on_connection_error(self) -> None: """unban_all_ips propagates Fail2BanConnectionError.""" - with patch( - "app.services.jail_service.Fail2BanClient", - side_effect=Fail2BanConnectionError("unreachable", _SOCKET), + with ( + patch( + "app.services.jail_service.Fail2BanClient", + side_effect=Fail2BanConnectionError("unreachable", _SOCKET), + ), + pytest.raises(Fail2BanConnectionError), ): - with pytest.raises(Fail2BanConnectionError): - await jail_service.unban_all_ips(_SOCKET) + await jail_service.unban_all_ips(_SOCKET) diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json index f428b80..895dc87 100644 --- a/frontend/tsconfig.node.json +++ b/frontend/tsconfig.node.json @@ -9,5 +9,5 @@ "allowSyntheticDefaultImports": true, "strict": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts", "vitest.config.ts"] }