Skip to content

Commit

Permalink
both files print
Browse files Browse the repository at this point in the history
  • Loading branch information
BelousSofiya committed Oct 8, 2023
1 parent 8e67003 commit e8057a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/tests/test_crud_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def test_full_update_profile_authorized_with_full_data(self):
max_wrong = sys.getsizeof(self.wrong_image)
print(max_wrong, '*'*10)
# print(response.content, '*'*10)
self.assertEqual(status.HTTP_200_OK, response.status_code)
self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)

def test_full_update_profile_unauthorized(self):
category = CategoryFactory()
Expand Down
1 change: 1 addition & 0 deletions validation/validate_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ def validate_image_size(image: Image):
import sys

max_size = sys.getsizeof(image)
print(f"{max_size=}")
if max_size > 50:
raise ValidationError("Image size exceeds the maximum allowed (50MB).")

0 comments on commit e8057a2

Please sign in to comment.