示例#1
0
def test_records_remain_unchanged_if_no_backfills_left(
    report_maintainer_mock,
    backfill_tool_mock,
    secretary,
    record_ready_for_processing,
    empty_sheriff_settings,
):
    sherlock = Sherlock(report_maintainer_mock, backfill_tool_mock, secretary)
    sherlock._backfill(['test_talos'],
                       [test_settings.TREEHERDER_TEST_REPOSITORY_NAME])

    assert not has_changed(record_ready_for_processing)
示例#2
0
def test_records_and_db_limits_remain_unchanged_if_no_records_suitable_for_backfill(
    report_maintainer_mock,
    backfill_tool_mock,
    secretary,
    sherlock_settings,
    record_unsuited_for_backfill,
):
    sherlock = Sherlock(report_maintainer_mock, backfill_tool_mock, secretary)
    sherlock._backfill(['test_talos'],
                       [test_settings.TREEHERDER_TEST_REPOSITORY_NAME])

    assert not has_changed(record_unsuited_for_backfill)
    assert not has_changed(sherlock_settings)