From 28a42b1709fd3c1b95ee88e57c5ebed64dd4474a Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Thu, 16 Oct 2025 15:46:49 +0200 Subject: [PATCH] fixed pid test --- input/tests/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)