Skip to content

Commit 84e54a8

Browse files
committed
rglob examples after they are copied
1 parent 5820dd3 commit 84e54a8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_packsmanager.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,9 @@ def test_copy_examples(input, expected_paths, example_cases):
190190
examples_dir = example_cases / "case5"
191191
pm = PacksManager(root_path=examples_dir)
192192
target_dir = example_cases / "user_target"
193-
actual = pm.copy_examples(input, target_dir=target_dir)
194-
expected = []
195-
for path in expected_paths:
196-
root_path = target_dir / path
197-
expected.append(root_path)
193+
pm.copy_examples(input, target_dir=target_dir)
194+
actual = list(target_dir.rglob("*"))
195+
expected = [target_dir / path for path in expected_paths]
198196
assert actual == expected
199197

200198

0 commit comments

Comments
 (0)