From e6f12ce5b17ad5885060da6d891c9a9f747e1260 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 5 Nov 2024 07:35:58 +0100 Subject: [PATCH] test: fix assertion method (not a request return but a list is returned) --- src/tests/test_admin_tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_admin_tasks.py b/src/tests/test_admin_tasks.py index 20f5edd..e75b690 100644 --- a/src/tests/test_admin_tasks.py +++ b/src/tests/test_admin_tasks.py @@ -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)