test: fix assertion method (not a request return but a list is returned)

This commit is contained in:
moanos [he/him] 2024-11-05 07:35:58 +01:00
parent 6325de17d9
commit e6f12ce5b1

View File

@ -31,9 +31,9 @@ class DeactiviationTest(TestCase):
def test_get_unchecked_adoption_notices(self):
result = get_unchecked_adoption_notices()
self.assertContains(result, self.adoption1)
self.assertNotContains(result, self.adoption2)
self.assertNotContains(result, self.adoption3)
self.assertIn(self.adoption1, result)
self.assertNotIn(self.adoption2, result)
self.assertNotIn(self.adoption3, result)
def test_deactivate_unchecked_adoption_notices(self):
self.assertTrue(self.adoption1.is_active)