We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e95c190 commit 3ee09ecCopy full SHA for 3ee09ec
1 file changed
tests/test_api.py
@@ -321,8 +321,7 @@ def test_upload_thumbnail_for_task(self):
321
322
def test_upload_thumbnail_with_upload_function(self):
323
"""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")))
+ path = os.path.abspath(os.path.expanduser(os.path.join(os.path.dirname(__file__), "sg_logo.jpg")))
326
327
# upload thumbnail
328
thumb_id = self.sg.upload("Task", self.task['id'], path, 'image')
0 commit comments