test: fix test search
This commit is contained in:
parent
c1c4af6571
commit
5669c822b9
@ -101,5 +101,5 @@ class TestSearch(TestCase):
|
|||||||
"""
|
"""
|
||||||
notify_search_subscribers(self.adoption1)
|
notify_search_subscribers(self.adoption1)
|
||||||
|
|
||||||
self.assertTrue(AdoptionNoticeNotification.objects.filter(user=self.test_user1).exists())
|
self.assertTrue(AdoptionNoticeNotification.objects.filter(user=self.test_user1, adoption_notice=self.adoption1).exists())
|
||||||
self.assertFalse(AdoptionNoticeNotification.objects.filter(user=self.test_user1).exists())
|
self.assertFalse(AdoptionNoticeNotification.objects.filter(user=self.test_user2).exists())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user