From a9b0723dd770a9f124ac2a073b9bec9e8ab6cf0d Mon Sep 17 00:00:00 2001 From: "Mayr, Hannes" <hannes.mayr@stud.tu-darmstadt.de> Date: Tue, 23 Aug 2022 15:34:56 +0200 Subject: [PATCH] Adjust unittest for covering dst_dir with trailing slash. --- tests/test_publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_publish.py b/tests/test_publish.py index 159f2be..4956734 100644 --- a/tests/test_publish.py +++ b/tests/test_publish.py @@ -46,7 +46,7 @@ class TestPublish(unittest.TestCase): 'copied.') def test_publish(self): """ Test publish and check if an exported picture file exists. """ - publish(SRC_DIR, DST_PATH, FIG, PIC_NAME, 'individual') + publish(SRC_DIR, DST_PATH + '/', FIG, PIC_NAME, 'individual') assert os.path.isfile(os.path.join(DST_PATH, PIC_NAME + '.png')) # Skip test if tests are run from command line. -- GitLab