Skip to content

Commit 377808e

Browse files
committed
tests: Add failing test
1 parent a3a9825 commit 377808e

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
File renamed without changes.
File renamed without changes.

tests/test_deps.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,15 @@ def test_copy_to():
354354
dep4.copy_to(tmpdir4)
355355
assert (Path(tmpdir4) / "w-1.0" / "testdep.css").exists()
356356
assert (Path(tmpdir4) / "w-1.0" / "testdep.js").exists()
357+
358+
with tempfile.TemporaryDirectory() as tmpdir5:
359+
path_testdep_nested = Path(__file__).parent / "assets" / "testdep-nested"
360+
dep5 = HTMLDependency(
361+
"w",
362+
"1.0",
363+
source={"subdir": str(path_testdep_nested)},
364+
all_files=True,
365+
)
366+
dep5.copy_to(tmpdir5)
367+
assert (Path(tmpdir5) / "w-1.0" / "css" / "my-styles.css").exists()
368+
assert (Path(tmpdir5) / "w-1.0" / "js" / "my-script.js").exists()

0 commit comments

Comments
 (0)