mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 03:56:43 +00:00
no test for malformed paths
This commit is contained in:
parent
ca07c5f12c
commit
e162eea9a4
@ -60,13 +60,13 @@ class ReportTest(InvenTreeAPITestCase):
|
|||||||
template_dir
|
template_dir
|
||||||
)
|
)
|
||||||
|
|
||||||
if not os.path.exists(dst_dir):
|
if not os.path.exists(dst_dir): # pragma: no cover
|
||||||
os.makedirs(dst_dir, exist_ok=True)
|
os.makedirs(dst_dir, exist_ok=True)
|
||||||
|
|
||||||
src_file = os.path.join(src_dir, filename)
|
src_file = os.path.join(src_dir, filename)
|
||||||
dst_file = os.path.join(dst_dir, filename)
|
dst_file = os.path.join(dst_dir, filename)
|
||||||
|
|
||||||
if not os.path.exists(dst_file):
|
if not os.path.exists(dst_file): # pragma: no cover
|
||||||
shutil.copyfile(src_file, dst_file)
|
shutil.copyfile(src_file, dst_file)
|
||||||
|
|
||||||
# Convert to an "internal" filename
|
# Convert to an "internal" filename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user