Skip tests in failure before deps version bump
[transportpce.git] / tests / transportpce_tests / common / test_utils.py
index f156ad67ac4838968ff05b1d8e72e6c4029b9a8e..1272df7703bcd74aec551643beda73a0e8e0f567 100644 (file)
@@ -386,8 +386,12 @@ def check_node_attribute_request(node: str, attribute: str, attribute_value: str
                   'draft-bierman02': attribute}
     if return_key[RESTCONF_VERSION] in res.keys():
         response_attribute = res[return_key[RESTCONF_VERSION]]
-    else:
+    elif 'errors' in res.keys():
         response_attribute = res['errors']['error'][0]
+    else:
+        # status code 400 invalid request
+        response_attribute = res['message'] + ' ' + res['url']
+        print(response_attribute)
     return {'status_code': response.status_code,
             attribute: response_attribute}