summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-06-25 02:23:23 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-06-25 02:23:23 +0200
commit0357143da9fcac710dd40d85af2910f81f871b90 (patch)
treecf77faf5e29c684fd9510911823b27df70d30540 /archaeological_operations/tests.py
parent5c20be2beccbc9cb6731d32ecdc670b9aef20499 (diff)
downloadIshtar-0357143da9fcac710dd40d85af2910f81f871b90.tar.bz2
Ishtar-0357143da9fcac710dd40d85af2910f81f871b90.zip
Import: add test for MCC context record import
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 9abc62bd4..527e10295 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -49,6 +49,7 @@ class ImportOperationTest(TestCase):
'../ishtar_common/fixtures/initial_importtypes-fr.json',
settings.ROOT_PATH +
'../archaeological_operations/fixtures/initial_data-fr.json']
+ test_operations = True
def setUp(self):
self.username, self.password, self.user = create_superuser()
@@ -56,6 +57,8 @@ class ImportOperationTest(TestCase):
def testMCCImportOperation(self, test=True):
# MCC opérations
+ if self.test_operations == False:
+ test = False
first_ope_nb = models.Operation.objects.count()
MCC_OPERATION = ImporterType.objects.get(name=u"MCC - Opérations")
mcc_operation_file = open(settings.ROOT_PATH + \
@@ -127,6 +130,8 @@ class ImportOperationTest(TestCase):
models.Operation.objects.order_by('-pk').all()[0])
def testMCCImportParcels(self, test=True):
+ if self.test_operations == False:
+ test = False
self.testMCCImportOperation(test=False)
old_nb = models.Parcel.objects.count()
MCC_PARCEL = ImporterType.objects.get(name=u"MCC - Parcelles")