diff --git a/input/tests/models.py b/input/tests/models.py index 476204e..0e7f50c 100755 --- a/input/tests/models.py +++ b/input/tests/models.py @@ -72,17 +72,17 @@ class ModelTestCase(TestCase): acc = self.account startdate = date(2022, 1, 1) obj = Project.objects.create(account=acc, name='testproject', start=startdate) - self.assertEqual(obj.pid, "1234-00000001") + self.assertEqual(obj.pid, "123400000001") self.assertEqual(obj.account.code, "1234") obj2 = Project.objects.create(account=acc, name='testproject2', start=startdate) - self.assertEqual(obj2.pid, "1234-00000002") + self.assertEqual(obj2.pid, "123400000002") 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.pid, "1234-00000004") + self.assertEqual(obj3.pid, "123400000004") def test_literature(self): obj = Literature.objects.create(cost='100', notes='jolo', selfbuy_give_data=False)