Example #1
0
 def test_engaged_users(self, mock_mongo_client):
     engaged_user, message = HistoryProcessor.engaged_users("tests")
     assert engaged_user['engaged_users'] == 0
     assert message
Example #2
0
 def test_engaged_users_error(self, mock_db_timeout):
     engaged_user, message = HistoryProcessor.engaged_users("tests")
     assert engaged_user['engaged_users'] == 0
     assert message