From 0d96be109fecb4dc4967708dc87107be450e83b3 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 23:27:28 +0000 Subject: [PATCH] fix(test): add @pytest.mark.asyncio to allowlist test class pytest.ini uses [tool:pytest] header which is not recognized by pytest.ini files (only setup.cfg uses that header), so asyncio_mode=auto is silently ignored and pytest-asyncio defaults to STRICT mode. In STRICT mode every async test must carry an explicit @pytest.mark.asyncio marker. Adds the class-level decorator so all four async methods in TestUpdateColumnAllowlist are handled by pytest-asyncio. Fixes the test-backend failure introduced by commit 77eb667 (part 3 of the Bandit security hardening), which added this test file without the marker. Co-Authored-By: Claude Sonnet 4.6 --- services/orchestrator/tests/test_database_update_allowlist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/orchestrator/tests/test_database_update_allowlist.py b/services/orchestrator/tests/test_database_update_allowlist.py index 8179461..ad7a4a4 100644 --- a/services/orchestrator/tests/test_database_update_allowlist.py +++ b/services/orchestrator/tests/test_database_update_allowlist.py @@ -25,6 +25,7 @@ async def _cm(): @pytest.mark.database +@pytest.mark.asyncio class TestUpdateColumnAllowlist: async def test_update_organization_rejects_unknown_column(self): # A non-allowlisted key (here even carrying a SQL payload) must be