MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / actual_events

Method actual_events

test/test_connection_monitoring.py:192–195  ·  view source on GitHub ↗

Return all the non-ignored events.

(self, ignore)

Source from the content-addressed store, hash-verified

190 self.check_object(actual, expected)
191
192 def actual_events(self, ignore):
193 """Return all the non-ignored events."""
194 ignore = tuple(OBJECT_TYPES[name] for name in ignore)
195 return [event for event in self.listener.events if not isinstance(event, ignore)]
196
197 def check_events(self, events, ignore):
198 """Check the events of a test."""

Callers 1

check_eventsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected