summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne@peacefrogs.net>2019-02-11 15:58:05 +0100
committerÉtienne Loks <etienne@peacefrogs.net>2019-02-11 15:58:05 +0100
commit20dac62b53d06b4690186b46a4bc35cacff82302 (patch)
tree2db132309f48271011ffcc5878b1a2b4449d1e2f /archaeological_operations/tests.py
parente5882d0a3878faf266e10a0331ab02bf49b30315 (diff)
downloadIshtar-20dac62b53d06b4690186b46a4bc35cacff82302.tar.bz2
Ishtar-20dac62b53d06b4690186b46a4bc35cacff82302.zip
Tests: parcle are no more automatically removed
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py8
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):