def test_run_optimize_after() -> None: _teardown() settings = Settings() settings.optimize_after = 3000 wos = Walk(settings) res = wos.run() assert res _teardown()
def test_run() -> None: _teardown() settings = Settings() settings.can_do = False wos = Walk(settings) res = wos.run() assert not res _teardown()
def test_run_record_timestamp() -> None: _teardown() TMP_ROOT.mkdir() settings = Settings( None, Namespace(record_timestamp=True, paths=[TMP_ROOT], recurse=True) ) wos = Walk(settings) res = wos.run() assert res _teardown()