summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorroot <root@viserion.(none)>2013-04-30 10:45:14 +0000
committerroot <root@viserion.(none)>2013-04-30 10:45:14 +0000
commit2470c7c36a92a5714a7b8d56a1bcab904f23f0d8 (patch)
tree53e045e9f05bc0e0252dbf059def75d26f3710ae /archaeological_operations/tests.py
parent4bb3177058d78646469947c2ed1be5edc055e8a1 (diff)
parent6e1cff0a016a08d6a19ec8211029a2713538dd58 (diff)
downloadIshtar-2470c7c36a92a5714a7b8d56a1bcab904f23f0d8.tar.bz2
Ishtar-2470c7c36a92a5714a7b8d56a1bcab904f23f0d8.zip
Merge branch 'master' of lysithea.proxience.net:/home/proxience/git/ishtar
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py15
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']))