Beispiel #1
0
def test_run_durations(filename, expected):
    task = Task(json=get_dummy_task_json(filename))
    assert task.run_durations() == expected
Beispiel #2
0
def test_run_durations2():
    task = Task(json=get_dummy_task_json("completed.json"))
    assert task.run_durations() == [datetime.timedelta(seconds=852, microseconds=561000)]