events
clients
prefect.server.events.clients
Classes
EventsClient
The abstract interface for a Prefect Events client
NullEventsClient
A no-op implementation of the Prefect Events client for testing
AssertingEventsClient
An implementation of the Prefect Events client that records all events sent to it for inspection during tests.
Methods:
reset
Reset all captured instances and their events. For use this between tests
emitted_events_count
assert_emitted_event_count
Assert that the given number of events were emitted.
assert_emitted_event_with
Assert that an event was emitted containing the given properties.