Skip to content

Commit

Permalink
Revert old state of writing function for other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Jun 15, 2023
1 parent f048d50 commit cf5f676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def create_test_photos(number_of_photos=1, **kwargs):


def create_test_file(path: str, user: User, content: bytes):
with open(path, "wb+") as f:
f.write(content)
return File.create(path, user)


Expand Down

0 comments on commit cf5f676

Please sign in to comment.