Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
YanZhylavy committed Aug 24, 2024
1 parent c436b02 commit 4e3e24e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions BackEnd/profiles/tests/test_email_sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_send_moderation_email(self):
manager = ModerationManager(self.profile)
manager.check_for_moderation()
banner = manager.images["banner"]
logo = manager.images["logo"]
logo = manager.images["logo"]
content_is_deleted = manager.content_deleted
send_moderation_email(self.profile, banner, logo, content_is_deleted)

Expand Down Expand Up @@ -62,7 +62,7 @@ def test_send_moderation_email_only_banner(self):
manager = ModerationManager(self.profile)
manager.check_for_moderation()
banner = manager.images["banner"]
logo = manager.images["logo"]
logo = manager.images["logo"]
content_is_deleted = manager.content_deleted
send_moderation_email(self.profile, banner, logo, content_is_deleted)

Expand Down Expand Up @@ -91,7 +91,7 @@ def test_send_moderation_email_only_logo(self):
manager = ModerationManager(self.profile)
manager.check_for_moderation()
banner = manager.images["banner"]
logo = manager.images["logo"]
logo = manager.images["logo"]
content_is_deleted = manager.content_deleted
send_moderation_email(self.profile, banner, logo, content_is_deleted)

Expand Down Expand Up @@ -194,6 +194,4 @@ def test_check_for_moderation_deleted_both(self):
self.profile.logo = None
self.manager.check_for_moderation()
self.assertFalse(self.manager.moderation_is_needed)
self.assertEqual(
self.manager.images, {"banner": None, "logo": None}
)
self.assertEqual(self.manager.images, {"banner": None, "logo": None})
2 changes: 1 addition & 1 deletion BackEnd/utils/moderation/handle_approved_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class ApprovedImagesDeleter:

"""
Entity that handles deletion of approved images in case if user deletes image under moderation.
Entity that handles the deletion of approved images if a user deletes an image under moderation.
"""

def __init__(self, profile):
Expand Down

0 comments on commit 4e3e24e

Please sign in to comment.