Commit 8610b6de by Ben Patterson

Events bok-choy multiprocessing support.

Stop clearing the entire mongo collection with every mixin instantiation.
Instead, reset the clock for the particular test.

With this approach, filters must be stricter, for example, according
to username or user id.
parent 24d72883
......@@ -351,7 +351,7 @@ class EventsTestMixin(TestCase):
def setUp(self):
super(EventsTestMixin, self).setUp()
self.event_collection = MongoClient()["test"]["events"]
self.reset_event_tracking()
self.start_time = datetime.now()
def reset_event_tracking(self):
"""Drop any events that have been collected thus far and start collecting again from scratch."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment