Skip to content

Commit 81fa5cf

Browse files
committed
make sure directory was created
1 parent e0a2c75 commit 81fa5cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/test_cli.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,17 @@ def test_map_pack_to_examples(tmp_path, mocker, structure, expected):
3232
packdir = tmp_path / pack
3333
packdir.mkdir()
3434
for ex in exdirs:
35-
(packdir / ex).mkdir()
35+
exdir = packdir / ex
36+
exdir.mkdir()
37+
# check directory was created
38+
assert exdir.exists() and exdir.is_dir(), f"{exdir} not created"
3639
# patch _get_examples_dir to point to tmp_path
3740
mocker.patch.object(cli, "_get_examples_dir", return_value=tmp_path)
3841
# expected behavior: a dictionary mapping pack to lists of examples
3942
result = cli.map_pack_to_examples()
4043
assert result == expected
44+
45+
46+
def test_copy_examples():
47+
""""""
48+
return

0 commit comments

Comments
 (0)