diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2019-02-11 15:58:05 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2019-02-11 15:58:05 +0100 |
commit | 7b94d460dedffe3e3489346fcbfb76dcfe86f9b9 (patch) | |
tree | 2db132309f48271011ffcc5878b1a2b4449d1e2f /archaeological_operations/tests.py | |
parent | 44ef608fc7f7ddeef4958e8afbcdf1456334317d (diff) | |
download | Ishtar-7b94d460dedffe3e3489346fcbfb76dcfe86f9b9.tar.bz2 Ishtar-7b94d460dedffe3e3489346fcbfb76dcfe86f9b9.zip |
Tests: parcle are no more automatically removed
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 956afcaaa..01418141d 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1024,8 +1024,8 @@ class OperationTest(TestCase, OperationInitTest): parcel_nb = models.Parcel.objects.count() ope.parcels.add(parcel) ope.delete() - # our parcel has no operation attached and should be deleted - self.assertEqual(parcel_nb - 1, models.Parcel.objects.count()) + # our parcel has no operation attached and... is not more deleted + self.assertEqual(parcel_nb, models.Parcel.objects.count()) ope = self.operations[1] parcel = models.Parcel.objects.create(town=town) parcel_nb = models.Parcel.objects.count() @@ -2369,8 +2369,8 @@ class OperationWizardDeleteTest(OperationWizardCreationTest): def post_wizard(self): self.assertEqual(self.operation_number - 1, models.Operation.objects.count()) - # associated parcel removed - self.assertEqual(self.parcel_nb - 1, models.Parcel.objects.count()) + # associated parcel is... no more removed + self.assertEqual(self.parcel_nb, models.Parcel.objects.count()) class OperationWizardClosingTest(OperationWizardCreationTest): |