summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-06-13 13:04:16 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-06-13 13:04:16 +0200
commit04be2c3f89867d2b8ae21ccb475066016bac487d (patch)
tree4ae4ae5c72d4391836ed1d346999e38aa4d48509 /archaeological_operations/tests.py
parent99b70dd1e0724e08e55d99185407caada9ab5eaf (diff)
downloadIshtar-04be2c3f89867d2b8ae21ccb475066016bac487d.tar.bz2
Ishtar-04be2c3f89867d2b8ae21ccb475066016bac487d.zip
OA code is now a string.
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 183a2f682..924727065 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -193,7 +193,7 @@ class ImportOperationTest(ImportTest, TestCase):
# and well imported
last_ope = models.Operation.objects.order_by('-pk').all()[0]
self.assertEqual(last_ope.name, u"Oppìdum de Paris")
- self.assertEqual(last_ope.code_patriarche, 4200)
+ self.assertEqual(last_ope.code_patriarche, '4200')
self.assertEqual(last_ope.operation_type.txt_idx, 'prog_excavation')
self.assertEqual(last_ope.periods.count(), 2)
periods = [period.txt_idx for period in last_ope.periods.all()]
@@ -315,7 +315,7 @@ class ImportOperationTest(ImportTest, TestCase):
sorted([p.parcel_number for p in last_parcels]))
self.assertEqual(sections,
sorted([p.section for p in last_parcels]))
- ope1 = models.Operation.objects.filter(code_patriarche=4200).all()[0]
+ ope1 = models.Operation.objects.filter(code_patriarche='4200').all()[0]
towns_ope = ope1.towns.all()
imported = [imp for acc, imp in impt.get_all_imported()]
for p in last_parcels:
@@ -328,7 +328,7 @@ class ImportOperationTest(ImportTest, TestCase):
operation_id=ope1.pk).external_id,
'4200-59350-YY55')
# cached_label update
- ope2 = models.Operation.objects.filter(code_patriarche=4201).all()[0]
+ ope2 = models.Operation.objects.filter(code_patriarche='4201').all()[0]
self.assertIn('LILLE', ope2.cached_label.upper())
# delete associated parcel with the import deletion
parcel_count = models.Parcel.objects.count()