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 | 525e57c74d876689dc4ca3aabc324a07cddb41fb (patch) | |
tree | aa503abd2036c9e6be48339e666eaac586402a0f /archaeological_operations/tests.py | |
parent | 8e30954860d4fef23885732a387903d476545900 (diff) | |
parent | 029eba4c18446c92636ccc1c36ef524a48cbbedf (diff) | |
download | Ishtar-525e57c74d876689dc4ca3aabc324a07cddb41fb.tar.bz2 Ishtar-525e57c74d876689dc4ca3aabc324a07cddb41fb.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") |