diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 18:24:56 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 18:24:56 +0200 | 
| commit | 3a1cadc3f9ea17514d0564dd6a17420ca1bf8242 (patch) | |
| tree | 55a74abbbd6390732c28656fa1dbc7f138ac5c45 /archaeological_context_records/tests.py | |
| parent | 3151068b458f46bba67a49ea3688c7789e728faf (diff) | |
| parent | e2987bad62b6571fcfcebbbc24dea6cbd56d224d (diff) | |
| download | Ishtar-3a1cadc3f9ea17514d0564dd6a17420ca1bf8242.tar.bz2 Ishtar-3a1cadc3f9ea17514d0564dd6a17420ca1bf8242.zip  | |
Merge branch 'stable'
Diffstat (limited to 'archaeological_context_records/tests.py')
| -rw-r--r-- | archaeological_context_records/tests.py | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index 2900b8786..00854ad7c 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -27,14 +27,16 @@ from django.core.exceptions import ValidationError  from django.core.files.uploadedfile import SimpleUploadedFile  from django.test import TestCase -from ishtar_common.models import ImporterType, TargetKey -from archaeological_operations.tests import OperationInitTest, ImportOperationTest +from ishtar_common.models import ImporterType +from archaeological_operations.tests import OperationInitTest, \ +                                            ImportOperationTest  from archaeological_operations.models import Parcel  from archaeological_context_records import models  from ishtar_common import forms_common  class ImportContextRecordTest(ImportOperationTest):      test_operations = False +    test_context_records = True      fixtures = ImportOperationTest.fixtures + [          settings.ROOT_PATH + @@ -42,7 +44,8 @@ class ImportContextRecordTest(ImportOperationTest):      ]      def testMCCImportContextRecords(self, test=True): -        self.testMCCImportOperation(test=False) +        if test and not self.test_context_records: +            return          self.testMCCImportParcels(test=False)          old_nb = models.ContextRecord.objects.count()  | 
