Fix new pylint issues in functional tests
[transportpce.git] / tests / transportpce_tests / hybrid / test03_autonomous_reroute.py
index 36997c808fdee46ee6c0b7e07b7df8124d2013a3..a456d8a1df1513a11884313fa4926a286f0bd986 100644 (file)
@@ -1064,7 +1064,8 @@ class TransportPCEtesting(unittest.TestCase):
         }
         response = requests.request("POST", url.format("http://127.0.0.1:8141/restconf"),
                                     data=json.dumps(body), headers=test_utils_rfc8040.TYPE_APPLICATION_JSON,
-                                    auth=(test_utils_rfc8040.ODL_LOGIN, test_utils_rfc8040.ODL_PWD))
+                                    auth=(test_utils_rfc8040.ODL_LOGIN, test_utils_rfc8040.ODL_PWD),
+                                    timeout=test_utils_rfc8040.REQUEST_TIMEOUT)
         self.assertEqual(response.status_code, requests.codes.ok)
         self.assertEqual(response.json()['output']['status-message'], "The PMs has been successfully set !")
         time.sleep(self.WAITING * 2)
@@ -1141,7 +1142,8 @@ class TransportPCEtesting(unittest.TestCase):
         }
         response = requests.request("POST", url.format("http://127.0.0.1:8141/restconf"),
                                     data=json.dumps(body), headers=test_utils_rfc8040.TYPE_APPLICATION_JSON,
-                                    auth=(test_utils_rfc8040.ODL_LOGIN, test_utils_rfc8040.ODL_PWD))
+                                    auth=(test_utils_rfc8040.ODL_LOGIN, test_utils_rfc8040.ODL_PWD),
+                                    timeout=test_utils_rfc8040.REQUEST_TIMEOUT)
         self.assertEqual(response.status_code, requests.codes.ok)
         self.assertEqual(response.json()['output']['status-message'], "The PMs has been successfully released !")
         time.sleep(2)