From 8e34ed440e6fc2327aa23e678fc5721f2011c4af Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 6 Nov 2024 23:32:50 +0100 Subject: [PATCH] test: Test for correct behaviour for further information = None --- src/tests/test_admin_tasks.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tests/test_admin_tasks.py b/src/tests/test_admin_tasks.py index b8451ff..5aaf766 100644 --- a/src/tests/test_admin_tasks.py +++ b/src/tests/test_admin_tasks.py @@ -67,12 +67,18 @@ class PingTest(TestCase): last_checked=less_than_three_weeks_ago, further_information=link_active) cls.adoption2 = baker.make(AdoptionNotice, - name="TestAdoption1", + name="TestAdoption2", created_at=less_than_three_weeks_ago, last_checked=less_than_three_weeks_ago, further_information=link_inactive) + cls.adoption3 = baker.make(AdoptionNotice, + name="TestAdoption3", + created_at=less_than_three_weeks_ago, + last_checked=less_than_three_weeks_ago, + further_information=None) cls.adoption1.set_active() cls.adoption2.set_active() + cls.adoption3.set_active() def test_is_404(self): urls = [("https://hyteck.de/maxwell", True),