Beispiel #1
0
def clear_all_activities_from_database(step):

    activities = ActivityManager.get_all()
    while activities:
        for activity in activities:
            activity.delete()
        activities = ActivityManager.get_all()
Beispiel #2
0
def retrieve_last_activities(step):
    world.activities = ActivityManager.get_all()
Beispiel #3
0
def retrieve_activities_from_date(step, date):

    world.activities = ActivityManager.get_all(date)
Beispiel #4
0
def checks_that_contact_update_activity_is_properly_created(step):
    activity = ActivityManager.get_all().first()
    assert "modifies" == activity.verb
    assert "profile" == activity.docType
    assert False == activity.isMine
    assert "default contact 2"  == activity.author