From 99a70229a145c8718f68b0d385a459cf65058577 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 4 Oct 2021 14:32:09 +0200 Subject: [PATCH] refined project of year test --- input/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input/tests.py b/input/tests.py index ec64c5b..8b1d60b 100644 --- a/input/tests.py +++ b/input/tests.py @@ -58,5 +58,8 @@ class TestWithLogin(TestCase): obj2 = Project.objects.create(account= acc, name='testproject2', start=startdate) self.assertEqual(obj2.project_of_year,2) + olddate = date(2021,12,31) + obj4 = Project.objects.create(account= acc, name='testproject2', start=olddate) + obj3 = Project.objects.create(account= acc, name='testproject2', start=startdate) self.assertEqual(obj3.project_of_year,3)