Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Mar 28, 2024
1 parent 3649010 commit 2b538dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyiron_base/project/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,8 @@ def unpack(self, origin_path, csv_file_name="export.csv", compress=True):
csv_file_name (str): the csv file from which the job_table is copied to the current project
compress (bool): if True, it looks for a compressed file
"""
if isinstance(origin_path, Project):
origin_path = origin_path.path
csv_path_origin = os.path.join(os.path.dirname(origin_path), csv_file_name)
csv_path_project = os.path.join(self.path, csv_file_name)
if os.path.exists(csv_file_name):
Expand Down
2 changes: 1 addition & 1 deletion tests/archiving/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_content(self):

def test_export_with_targz_extension(self):
os.makedirs(os.path.join(os.curdir, 'tmp'))
tmp_path = os.path.join(os.curdir, 'tmp')
tmp_path = os.path.abspath(os.path.join(os.curdir, 'tmp'))
tar_arch = self.arch_dir_comp + '.tar.gz'
self.pr.pack(destination_path=os.path.join(tmp_path, tar_arch),
csv_file_name=os.path.join(tmp_path, 'exported.csv'), compress=True)
Expand Down

0 comments on commit 2b538dd

Please sign in to comment.