We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a9825 commit 377808eCopy full SHA for 377808e
tests/assets/css/my-styles.css renamed to tests/assets/testdep-nested/css/my-styles.css
tests/assets/js/my-js.js renamed to tests/assets/testdep-nested/js/my-js.js
tests/test_deps.py
@@ -354,3 +354,15 @@ def test_copy_to():
354
dep4.copy_to(tmpdir4)
355
assert (Path(tmpdir4) / "w-1.0" / "testdep.css").exists()
356
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