We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 031a369 commit e95c190Copy full SHA for e95c190
1 file changed
tests/test_api.py
@@ -321,7 +321,8 @@ 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
- size = os.stat(path).st_size
+ this_dir, _ = os.path.split(__file__)
325
+ path = os.path.abspath(os.path.expanduser(os.path.join(this_dir,"sg_logo.jpg")))
326
327
# upload thumbnail
328
thumb_id = self.sg.upload("Task", self.task['id'], path, 'image')
0 commit comments