Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jul 18, 2024
1 parent 4669adf commit def6a59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/tests/test_api_task_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_task(self):
assets_path = os.path.join(settings.MEDIA_TMP, "all.zip")

with open(assets_path, 'wb') as f:
f.write(res.content)
f.write(b''.join(res.streaming_content))

remove_perm('change_project', user, project)

Expand Down Expand Up @@ -272,7 +272,7 @@ def test_backup(self):
assets_path = os.path.join(settings.MEDIA_TMP, "backup.zip")

with open(assets_path, 'wb') as f:
f.write(res.content)
f.write(b''.join(res.streaming_content))

assets_file = open(assets_path, 'rb')

Expand Down

0 comments on commit def6a59

Please sign in to comment.