diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2013-04-30 10:45:14 +0000 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2013-04-30 10:45:14 +0000 | 
| commit | 670e4c633a4fc0d66d10ac6e88b27ff6fb494328 (patch) | |
| tree | 53e045e9f05bc0e0252dbf059def75d26f3710ae /archaeological_operations/tests.py | |
| parent | 62d3eae1706a6bde8b0437ef765cf31983a88540 (diff) | |
| parent | 7436163934fcfc94c69fc97bd70466b251fbba77 (diff) | |
| download | Ishtar-670e4c633a4fc0d66d10ac6e88b27ff6fb494328.tar.bz2 Ishtar-670e4c633a4fc0d66d10ac6e88b27ff6fb494328.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.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'])) | 
