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()
def test_is_older_than_timestamp_none() -> None: res = Walk._is_older_than_timestamp(TMP_ROOT, None, None) assert not res _teardown()