From 01db23a883983912d6998f6be71d3bd6a9a61b8d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 25 Jun 2015 18:23:59 +0200 Subject: Import: fix MCC find imports + tests --- archaeological_context_records/tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'archaeological_context_records/tests.py') 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() -- cgit v1.2.3