MCPcopy
hub / github.com/gorakhargosh/watchdog / test_move_from

Function test_move_from

tests/test_snapshot_diff.py:58–65  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

56
57
58def test_move_from(p):
59 mkdir(p("dir1"))
60 mkdir(p("dir2"))
61 touch(p("dir1", "a"))
62 ref = DirectorySnapshot(p("dir1"))
63 mv(p("dir1", "a"), p("dir2", "b"))
64 diff = DirectorySnapshotDiff(ref, DirectorySnapshot(p("dir1")))
65 assert diff.files_deleted == [p("dir1", "a")]
66
67
68def test_move_internal(p):

Callers

nothing calls this directly

Calls 6

DirectorySnapshotClass · 0.90
mkdirFunction · 0.85
touchFunction · 0.85
mvFunction · 0.85
pFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…