def test_user_has_more_than_one_activity_today_and_more_on_other_days(
            self, test_user_with_multiple_activities_on_multiple_days, test_db,
            test_activity):
        test_working_activity = ActivityManager.start_new_activity('working')
        ActivityGateway.add_new_activity_to_db(test_working_activity)

        todays_activities = ActivityGateway.activities_today()
        assert len(todays_activities) == 2
        _ids = [a._id for a in todays_activities]
        assert test_activity._id in _ids
        assert test_working_activity._id in _ids
 def test_one_activity_returned_when_only_one_started_today(
         self, test_db, test_activity):
     todays_activities = ActivityGateway.activities_today()
     assert len(todays_activities) == 1
     assert test_activity._id == todays_activities[0]._id
 def test_user_has_activities_on_different_days_but_only_1_today(
         self, test_user_with_multiple_activities_on_multiple_days,
         test_activity, test_db):
     todays_activities = ActivityGateway.activities_today()
     assert len(todays_activities) == 1
     assert test_activity._id == todays_activities[0]._id
 def test_no_activities_returned_when_nothing_started_today(self, test_db):
     assert len(ActivityGateway.activities_today()) == 0