generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8057a2
commit 4ac70bf
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,12 @@ def _generate_image(ext, size): | |
image.save(file, formatext) | ||
file.name = f"test.{formatext}" | ||
file.seek(0) | ||
# print(file.name, sys.getsizeof(file), sys.getsizeof(image), type(image)) | ||
return file | ||
|
||
def setUp(self) -> None: | ||
# self.right_image = self._generate_image("jpeg", (10, 10)) | ||
self.right_image = self._generate_image("png", (1, 1)) | ||
self.right_image = self._generate_image("png", (100, 100)) | ||
self.wrong_image = self._generate_image("png", (5, 5)) | ||
self.user = UserFactory(email="[email protected]") | ||
self.profile = ProfileStartupFactory.create( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters