summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-01 17:18:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-13 18:26:03 +0200
commit3a8aa349b06129c4a8f591d56147ce0c97d4d9c5 (patch)
treecf9e060d38c62d422684f0de85239822eafed2df /archaeological_operations/tests.py
parentdd2e367dde3d8df4fdfbc10b8f0d87607b160ef6 (diff)
downloadIshtar-3a8aa349b06129c4a8f591d56147ce0c97d4d9c5.tar.bz2
Ishtar-3a8aa349b06129c4a8f591d56147ce0c97d4d9c5.zip
Fix clean parcel script
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 38f832cf8..b4c7bc617 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -1014,8 +1014,8 @@ class OperationTest(TestCase, OperationInitTest):
ope.parcels.add(parcel)
ope.parcels.clear() # no signal raised... should resave
models.Parcel.objects.filter(pk=parcel.pk).all()[0].save()
- # our parcel has no operation attached and should be deleted
- self.assertEqual(parcel_nb - 1, models.Parcel.objects.count())
+ # parcel is no longer automatically delete on detach
+ self.assertEqual(parcel_nb, models.Parcel.objects.count())
def testIndex(self):
ope = create_operation(self.user, values={'year': 2042})
@@ -2228,7 +2228,7 @@ class OperationWizardModifTest(WizardTest, OperationInitTest, TestCase):
# the init parcel is not detached from the operation
test_object.assertEqual(operation.parcels.count(),
test_object.parcel_number + 1)
- # update teh external id on update
+ # update the external id on update
cr = ContextRecord.objects.get(pk=self.cr.pk)
test_object.assertEqual(cr.external_id,
"codeope42-12345-A1-Context record")