From cdeff3c71fc444807e9be3e790eb344ba26a45c5 Mon Sep 17 00:00:00 2001 From: "jake@prefect.io" Date: Thu, 25 Jul 2024 16:34:29 -0400 Subject: [PATCH] don't always use the assertingeventsworker --- src/prefect/testing/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefect/testing/fixtures.py b/src/prefect/testing/fixtures.py index c5cd2fd1ae36..8a8213dcada8 100644 --- a/src/prefect/testing/fixtures.py +++ b/src/prefect/testing/fixtures.py @@ -337,7 +337,7 @@ def mock_should_emit_events(monkeypatch) -> mock.Mock: return m -@pytest.fixture(autouse=True) +@pytest.fixture def asserting_events_worker(monkeypatch) -> Generator[EventsWorker, None, None]: worker = EventsWorker.instance(AssertingEventsClient) # Always yield the asserting worker when new instances are retrieved