Fix pylint issue in pce functional tests 89/100289/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 30 Mar 2022 14:06:34 +0000 (16:06 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Wed, 30 Mar 2022 14:08:03 +0000 (16:08 +0200)
JIRA: TRNSPRTPCE-320
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I51c35b1d8cc4b7a7a7dc5d4f5ff6cd0c0d13548e

tests/transportpce_tests/pce/test01_pce.py
tests/transportpce_tests/pce/test02_pce_400G.py
tests/transportpce_tests/pce/test03_gnpy.py

index dfbd553b0233806ae0f0e195d050c025555dca0e..8e8ad6713b73a0775445a6ea38c15319577d29ee 100644 (file)
@@ -34,8 +34,8 @@ class TransportPCEtesting(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         # pylint: disable=bare-except
+        sample_files_parsed = False
         try:
-            sample_files_parsed = False
             TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                             "..", "..", "sample_configs", "honeynode-topo.xml")
             with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir:
index cdea9d7bd4cde219481eae46225a49749f155fd0..db4cb4e2915f67dacfa796dccf0ceb604c5b4f39 100644 (file)
@@ -33,8 +33,8 @@ class TransportPCE400Gtesting(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         # pylint: disable=bare-except
+        sample_files_parsed = False
         try:
-            sample_files_parsed = False
             TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                             "..", "..", "sample_configs",
                                             "honeynode-topo400G.json")
index 57e1296204cd5133984575bbf89d1c01ea8d3104..cd2d8ceb39f59b4e36147f4926c7f11916bd31b0 100644 (file)
@@ -36,8 +36,8 @@ class TransportGNPYtesting(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         # pylint: disable=bare-except
+        sample_files_parsed = False
         try:
-            sample_files_parsed = False
             TOPO_CLLINET_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                              "..", "..", "sample_configs", "gnpy", "clliNetwork.json")
             with open(TOPO_CLLINET_FILE, 'r', encoding='utf-8') as topo_cllinet: