X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2Fhybrid%2Ftest01_device_change_notifications.py;h=275c55ce0115c35e250746e7fb8d2e627e44d1f1;hb=a8343688872d307ada1b4521721313a8ac3a3e5e;hp=10a309ef7242158f170af63886c4d104e79bf9cf;hpb=89d54863e044b85f1dababf3ed92cf50a7436552;p=transportpce.git diff --git a/tests/transportpce_tests/hybrid/test01_device_change_notifications.py b/tests/transportpce_tests/hybrid/test01_device_change_notifications.py index 10a309ef7..275c55ce0 100644 --- a/tests/transportpce_tests/hybrid/test01_device_change_notifications.py +++ b/tests/transportpce_tests/hybrid/test01_device_change_notifications.py @@ -14,9 +14,13 @@ import json import unittest import time import requests +# pylint: disable=wrong-import-order import sys sys.path.append('transportpce_tests/common/') -import test_utils +# pylint: disable=wrong-import-position +# pylint: disable=import-error +import test_utils # nopep8 + class TransportPCEFulltesting(unittest.TestCase): @@ -132,6 +136,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(10) def setUp(self): # instruction executed before each test method + # pylint: disable=consider-using-f-string print("execution of {}".format(self.id().split(".")[-1])) def test_01_connect_xpdrA(self): @@ -718,8 +723,7 @@ class TransportPCEFulltesting(unittest.TestCase): res = response.json() links = res['network'][0]['ietf-network-topology:link'] for link in links: - if (link["org-openroadm-common-network:link-type"] == "XPONDER-OUTPUT" or - link["org-openroadm-common-network:link-type"] == "XPONDER-INPUT"): + if link["org-openroadm-common-network:link-type"] in ('XPONDER-OUTPUT', 'XPONDER-INPUT'): link_name = link["link-id"] response = test_utils.delete_request(url+link_name) self.assertEqual(response.status_code, requests.codes.ok)