summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-07 17:34:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-07 17:34:18 +0100
commit898e9e306d1bca2765bf0902cb67cb9d94e03c52 (patch)
tree0b5681eb64aca8616670ac6e03b0b64851b66880 /archaeological_operations/tests.py
parent0dcab5e02a38a4151bb5a4d44bc351ce1062e072 (diff)
downloadIshtar-898e9e306d1bca2765bf0902cb67cb9d94e03c52.tar.bz2
Ishtar-898e9e306d1bca2765bf0902cb67cb9d94e03c52.zip
Exports: specific configuration to manage ambiguous column (refs #3446)
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 63f572643..c2d5aad83 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -332,7 +332,20 @@ class ImportOperationTest(ImportTest, TestCase):
impt.delete()
self.assertEqual(parcel_count - 3, models.Parcel.objects.count())
- def testParseParcels(self):
+
+class ParcelTest(ImportTest, TestCase):
+ fixtures = [settings.ROOT_PATH +
+ '../fixtures/initial_data-auth-fr.json',
+ settings.ROOT_PATH +
+ '../ishtar_common/fixtures/initial_data-fr.json',
+ settings.ROOT_PATH +
+ '../ishtar_common/fixtures/test_towns.json',
+ settings.ROOT_PATH +
+ '../ishtar_common/fixtures/initial_importtypes-fr.json',
+ settings.ROOT_PATH +
+ '../archaeological_operations/fixtures/initial_data-fr.json']
+
+ def test_parse_parcels(self):
# the database needs to be initialised before importing
from archaeological_operations.import_from_csv import parse_parcels
# default_town = Town.objects.create(numero_insee="12345",