From b4162df489f84e95c5321ee04a8ca8cd29833a20 Mon Sep 17 00:00:00 2001 From: tonyfast Date: Tue, 21 Nov 2023 00:28:10 -0800 Subject: [PATCH] make the directory --- tests/test_smoke.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_smoke.py b/tests/test_smoke.py index 64ea01ba..230ae1f9 100644 --- a/tests/test_smoke.py +++ b/tests/test_smoke.py @@ -81,6 +81,7 @@ def test_static_assets(assets): assert target.exists(), f"{assets.name} doesn't exist." except AssertionError: copyfile(assets, target) + target.parent.mkdir(exist_ok=True, parents=True) assert target.exists(), f"{assets.name} couldn't be created"