Skip to content

Commit

Permalink
don't always use the assertingeventsworker
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekaplan committed Jul 25, 2024
1 parent 01e995b commit cdeff3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdeff3c

Please sign in to comment.