diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 02:24:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-06-25 02:24:14 +0200 |
commit | 9c7c7c009d4913b7af1a404d1a1f56bc128ce05c (patch) | |
tree | aa503abd2036c9e6be48339e666eaac586402a0f /archaeological_operations/tests.py | |
parent | c5b29311c88eb1251cd1a30c63ec8ad6ea64df7d (diff) | |
parent | 0357143da9fcac710dd40d85af2910f81f871b90 (diff) | |
download | Ishtar-9c7c7c009d4913b7af1a404d1a1f56bc128ce05c.tar.bz2 Ishtar-9c7c7c009d4913b7af1a404d1a1f56bc128ce05c.zip |
Merge branch 'stable'
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 5 |
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") |