diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-30 12:31:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-30 12:31:28 +0200 |
commit | 7436163934fcfc94c69fc97bd70466b251fbba77 (patch) | |
tree | 53e045e9f05bc0e0252dbf059def75d26f3710ae /archaeological_operations/tests.py | |
parent | 7db1383ea51e71abda0eeb4e7bb38796cc17f8f4 (diff) | |
download | Ishtar-7436163934fcfc94c69fc97bd70466b251fbba77.tar.bz2 Ishtar-7436163934fcfc94c69fc97bd70466b251fbba77.zip |
Manage new imports for "Pays de la Loire"
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 9746dc3f6..61e7695f9 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -28,17 +28,26 @@ from django.test import TestCase from django.contrib.auth.models import User import models +from ishtar_common.models import OrganizationType, Organization + class ImportOperationTest(TestCase): - fixtures = ['../ishtar_commun/fixtures/initial_data.json', + fixtures = ['../ishtar_common/fixtures/initial_data.json', '../archaeological_files/fixtures/initial_data.json', - '../archaeological_operations/fixtures/initial_data.json'] + '../archaeological_operations/fixtures/initial_data-fr.json'] def setUp(self): user = User.objects.create_user('username') - def testImportOperation(self): + def testImportDbfOperation(self): """ Test operation import """ call_command('import_operations', os.sep.join([os.getcwd(), '..', 'archaeological_operations', 'tests', 'sample.dbf'])) + + def testImportCsvOperation(self): + """ + Test operation import + """ + call_command('import_operations', os.sep.join([os.getcwd(), '..', + 'archaeological_operations', 'tests', 'sample.csv'])) |