Skip to content

Commit

Permalink
added banner and logo check
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewakiv committed Sep 1, 2024
1 parent af7d2ea commit 746ead9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BackEnd/profiles/tests/test_email_sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def test_content_deleted_email_with_pending_status(self):
mail.outbox[0].body,
)
self.assertEqual(self.profile.status, self.profile.UNDEFINED)
self.assertIsNone(self.profile.banner)
self.assertIsNone(self.profile.logo)

def test_remove_pending_image_keep_approved_image(self):
self.profile.banner = self.banner
Expand All @@ -178,6 +180,8 @@ def test_remove_pending_image_keep_approved_image(self):
mail.outbox[0].body,
)
self.assertEqual(self.profile.status, self.profile.APPROVED)
self.assertTrue(self.profile.banner.is_approved)
self.assertIsNone(self.profile.logo)


class TestSendModerationManager(APITestCase):
Expand Down

0 comments on commit 746ead9

Please sign in to comment.