From 7436163934fcfc94c69fc97bd70466b251fbba77 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 30 Apr 2013 12:31:28 +0200 Subject: Manage new imports for "Pays de la Loire" --- archaeological_operations/tests.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'archaeological_operations/tests.py') 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'])) -- cgit v1.2.3