Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix some pylint issues
[transportpce.git]
/
tests
/
transportpce_tests
/
2.2.1
/
test_otn_topology.py
diff --git
a/tests/transportpce_tests/2.2.1/test_otn_topology.py
b/tests/transportpce_tests/2.2.1/test_otn_topology.py
index 751e9399fa921509abcd567d3913f0bb7eeec4d5..bc2c28a901014c22e419add735a2d36a0cdca4ec 100644
(file)
--- a/
tests/transportpce_tests/2.2.1/test_otn_topology.py
+++ b/
tests/transportpce_tests/2.2.1/test_otn_topology.py
@@
-30,6
+30,7
@@
class TransportPCEtesting(unittest.TestCase):
@classmethod
def tearDownClass(cls):
@classmethod
def tearDownClass(cls):
+ # pylint: disable=not-an-iterable
for process in cls.processes:
test_utils.shutdown_process(process)
print("all processes killed")
for process in cls.processes:
test_utils.shutdown_process(process)
print("all processes killed")
@@
-77,6
+78,7
@@
class TransportPCEtesting(unittest.TestCase):
self.assertNotIn('ietf-network-topology:link', res['network'][0])
def test_05_getNodes_OpenRoadmTopology(self):
self.assertNotIn('ietf-network-topology:link', res['network'][0])
def test_05_getNodes_OpenRoadmTopology(self):
+ # pylint: disable=redundant-unittest-assert
response = test_utils.get_ordm_topo_request("")
res = response.json()
# Tests related to nodes
response = test_utils.get_ordm_topo_request("")
res = response.json()
# Tests related to nodes
@@
-138,6
+140,7
@@
class TransportPCEtesting(unittest.TestCase):
self.assertNotIn('ietf-network-topology:link', res['network'][0])
def test_07_getNodes_OtnTopology(self):
self.assertNotIn('ietf-network-topology:link', res['network'][0])
def test_07_getNodes_OtnTopology(self):
+ # pylint: disable=redundant-unittest-assert
response = test_utils.get_otn_topo_request()
res = response.json()
self.assertEqual(response.status_code, requests.codes.ok)
response = test_utils.get_otn_topo_request()
res = response.json()
self.assertEqual(response.status_code, requests.codes.ok)