From e162eea9a418ae5c89ae3032be811bb15262eced Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Feb 2022 05:17:41 +0100 Subject: [PATCH] no test for malformed paths --- InvenTree/report/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/report/tests.py b/InvenTree/report/tests.py index 67a97dc3a2..f99128999c 100644 --- a/InvenTree/report/tests.py +++ b/InvenTree/report/tests.py @@ -60,13 +60,13 @@ class ReportTest(InvenTreeAPITestCase): 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) src_file = os.path.join(src_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) # Convert to an "internal" filename