summaryrefslogtreecommitdiff
path: root/archaeological_context_records/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-06-25 18:23:59 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-06-25 18:23:59 +0200
commite2987bad62b6571fcfcebbbc24dea6cbd56d224d (patch)
treed33d97722d748f5987ca0e997d3bda4c8917d457 /archaeological_context_records/tests.py
parentcde72747458d0639f4b037b9e6a486a7e63c88bf (diff)
downloadIshtar-e2987bad62b6571fcfcebbbc24dea6cbd56d224d.tar.bz2
Ishtar-e2987bad62b6571fcfcebbbc24dea6cbd56d224d.zip
Import: fix MCC find imports + tests
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r--archaeological_context_records/tests.py9
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()