From 7b94d460dedffe3e3489346fcbfb76dcfe86f9b9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 11 Feb 2019 15:58:05 +0100 Subject: Tests: parcle are no more automatically removed --- archaeological_operations/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archaeological_operations/tests.py') 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): -- cgit v1.2.3