Skip to content

Commit 3ee09ec

Browse files
committed
Cleaned up path fetch in test
1 parent e95c190 commit 3ee09ec

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@ def test_upload_thumbnail_for_task(self):
321321

322322
def test_upload_thumbnail_with_upload_function(self):
323323
"""Upload thumbnail via upload function test"""
324-
this_dir, _ = os.path.split(__file__)
325-
path = os.path.abspath(os.path.expanduser(os.path.join(this_dir,"sg_logo.jpg")))
324+
path = os.path.abspath(os.path.expanduser(os.path.join(os.path.dirname(__file__), "sg_logo.jpg")))
326325

327326
# upload thumbnail
328327
thumb_id = self.sg.upload("Task", self.task['id'], path, 'image')

0 commit comments

Comments
 (0)