def test_initialize_values(two_weeks, jp_all,
                           job_priority_list, jp_index_fixture):
    fourteen_days = datetime.datetime.now() + datetime.timedelta(days=14)
    two_weeks.return_value = fourteen_days
    jp_all.return_value = job_priority_list
    assert _initialize_values() == (jp_index_fixture, 1, fourteen_days)
def test_initialize_values_no_data():
    results = _initialize_values()
    assert results == ({}, 5, None)
def test_initialize_values_no_data():
    results = _initialize_values()
    assert results == ({}, 5, None)
Example #4
0
def test_initialize_values(two_weeks, jp_all, job_priority_list,
                           jp_index_fixture):
    fourteen_days = datetime.datetime.now() + datetime.timedelta(days=14)
    two_weeks.return_value = fourteen_days
    jp_all.return_value = job_priority_list
    assert _initialize_values() == (jp_index_fixture, 1, fourteen_days)