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