refined project of year test
This commit is contained in:
parent
ea3072e559
commit
99a70229a1
1 changed files with 3 additions and 0 deletions
|
@ -58,5 +58,8 @@ class TestWithLogin(TestCase):
|
||||||
obj2 = Project.objects.create(account= acc, name='testproject2', start=startdate)
|
obj2 = Project.objects.create(account= acc, name='testproject2', start=startdate)
|
||||||
self.assertEqual(obj2.project_of_year,2)
|
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)
|
obj3 = Project.objects.create(account= acc, name='testproject2', start=startdate)
|
||||||
self.assertEqual(obj3.project_of_year,3)
|
self.assertEqual(obj3.project_of_year,3)
|
||||||
|
|
Loading…
Reference in a new issue