From: Gilles Thouenon Date: Wed, 30 Mar 2022 14:06:34 +0000 (+0200) Subject: Fix pylint issue in pce functional tests X-Git-Tag: 5.0.0~55 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=3cce0ff813d5153571057fbd59515fc56663bbf3;hp=f21439dd643bb19d0d83e6f7e37addb4c3b39c6e Fix pylint issue in pce functional tests JIRA: TRNSPRTPCE-320 Signed-off-by: Gilles Thouenon Change-Id: I51c35b1d8cc4b7a7a7dc5d4f5ff6cd0c0d13548e --- diff --git a/tests/transportpce_tests/pce/test01_pce.py b/tests/transportpce_tests/pce/test01_pce.py index dfbd553b0..8e8ad6713 100644 --- a/tests/transportpce_tests/pce/test01_pce.py +++ b/tests/transportpce_tests/pce/test01_pce.py @@ -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: diff --git a/tests/transportpce_tests/pce/test02_pce_400G.py b/tests/transportpce_tests/pce/test02_pce_400G.py index cdea9d7bd..db4cb4e29 100644 --- a/tests/transportpce_tests/pce/test02_pce_400G.py +++ b/tests/transportpce_tests/pce/test02_pce_400G.py @@ -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") diff --git a/tests/transportpce_tests/pce/test03_gnpy.py b/tests/transportpce_tests/pce/test03_gnpy.py index 57e129620..cd2d8ceb3 100644 --- a/tests/transportpce_tests/pce/test03_gnpy.py +++ b/tests/transportpce_tests/pce/test03_gnpy.py @@ -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: