Skip to content
Snippets Groups Projects
Commit a9b0723d authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Adjust unittest for covering dst_dir with trailing slash.

parent b432fd7b
No related branches found
No related tags found
7 merge requests!41Include latest changes in main branch,!37Merge dev upstream changes into improve/metadata,!34Include architecture diagram in docs,!32SAST implementation,!27Update documentation and version number,!26Merge !23, !24, !25 into main,!20Allow publishing data to a directory with trailing slash.
Pipeline #786944 passed
...@@ -46,7 +46,7 @@ class TestPublish(unittest.TestCase): ...@@ -46,7 +46,7 @@ class TestPublish(unittest.TestCase):
'copied.') 'copied.')
def test_publish(self): def test_publish(self):
""" Test publish and check if an exported picture file exists. """ """ 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')) assert os.path.isfile(os.path.join(DST_PATH, PIC_NAME + '.png'))
# Skip test if tests are run from command line. # Skip test if tests are run from command line.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment