diff options
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 |
commit | 9d8ef84d18eddcadf0398a42c3606333d0c89d6a (patch) | |
tree | 0b5681eb64aca8616670ac6e03b0b64851b66880 /archaeological_operations/tests.py | |
parent | 70bf74767fccbe6cbdf4592759b31ddd5bb7d9c3 (diff) | |
download | Ishtar-9d8ef84d18eddcadf0398a42c3606333d0c89d6a.tar.bz2 Ishtar-9d8ef84d18eddcadf0398a42c3606333d0c89d6a.zip |
Exports: specific configuration to manage ambiguous column (refs #3446)
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 15 |
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", |