From e4f97d6459fcc94514cbfb7d365171dfd335f4a1 Mon Sep 17 00:00:00 2001 From: Lucas Guillermou Date: Mon, 6 Jan 2025 11:34:44 +0100 Subject: [PATCH] Set PREFECT_API_URL correctly during tests --- backend/tests/helpers/test_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/helpers/test_app.py b/backend/tests/helpers/test_app.py index c30aa5b8c1..975e7c8053 100644 --- a/backend/tests/helpers/test_app.py +++ b/backend/tests/helpers/test_app.py @@ -67,7 +67,7 @@ def bus_simulator(self, db: InfrahubDatabase) -> Generator[BusSimulator, None, N config.OVERRIDE.message_bus = original @pytest.fixture(scope="class", autouse=True) - async def workflow_local(self) -> AsyncGenerator[WorkflowLocalExecution, None]: + async def workflow_local(self, prefect: Generator[str, None, None]) -> AsyncGenerator[WorkflowLocalExecution, None]: original = config.OVERRIDE.workflow workflow = WorkflowLocalExecution() await setup_task_manager()