Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Jan 9, 2025
1 parent f19d2f3 commit d27b591
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/test_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@ def setUp(self):

def test_basic(self):
state = FolderState(self, self.disk / "folder1", self.disk / "folder2")
# d = drun(["rename", "execute"], [], [], [], **state) TODO
d = drun(["rename", "execute"], [], ["ignore_date"], [], {"log_level": 10}, **state)
import sys
print("12: d.log", d.changes, file=sys.stderr) # TODO

aa = [file for file in Path(self.disk).rglob('*')]
# print("17: aa", aa) # TODO

self.assertTrue(False, msg=f"14: d.log {aa}") # TODO
self.assertTrue(False, msg=f"14: d.log {d.changes}") # TODO
# We have to ignore the date as the remote checkout resets the mtime
d = drun(["rename", "execute"], [], ["ignore_date"], [], **state)
state.check(prefixed=("2.txt", "1.txt"))
self.log([
{"folder1/2.txt": ["renaming"], "folder2/2.txt": []},
Expand All @@ -28,9 +20,6 @@ def test_basic(self):
def test_reverse(self):
state = FolderState(self, self.disk / "folder2", self.disk / "folder1")
d = drun(["rename", "execute"], [], ["ignore_date"], [], **state)
import sys
print("13: d.log", d.changes, file=sys.stderr) # TODO
self.assertTrue(False, msg=f"15: d.log {d.changes}") # TODO
state.check(prefixed=("folder2.1/1.txt", "2.txt"))
self.log([
{"folder2/2.txt": ["renaming"], "folder1/2.txt": []},
Expand Down

0 comments on commit d27b591

Please sign in to comment.