Exemple #1
0
def test_is_older_than_timestamp_newer() -> None:
    _teardown()
    TMP_ROOT.mkdir()
    path = TMP_ROOT / "test.txt"
    path.touch()
    walk_after = path.stat().st_mtime - 100
    res = Walk._is_older_than_timestamp(path, walk_after, None)
    assert not res
    _teardown()
Exemple #2
0
def test_is_older_than_timestamp_none() -> None:
    res = Walk._is_older_than_timestamp(TMP_ROOT, None, None)
    assert not res
    _teardown()