예제 #1
0
def test_track_obsolete_files_defaults_to_true(
        preserve_track_obsolete_file_flag):
    assert metadata.should_track_obsolete_files()
예제 #2
0
def test_set_track_obsolete_files(preserve_track_obsolete_file_flag):
    metadata.set_track_obsolete_files(False)
    assert not metadata.should_track_obsolete_files()
    metadata.set_track_obsolete_files(True)
    assert metadata.should_track_obsolete_files()
예제 #3
0
def preserve_track_obsolete_file_flag():
    should_track_obselete_files = metadata.should_track_obsolete_files()
    yield should_track_obselete_files
    metadata.set_track_obsolete_files(should_track_obselete_files)