Skip to content
Snippets Groups Projects
Commit 4e20c917 authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent 660f6c85
No related branches found
No related tags found
No related merge requests found
...@@ -561,7 +561,8 @@ def get_bgp_peer_info(address): ...@@ -561,7 +561,8 @@ def get_bgp_peer_info(address):
return Response(result, mimetype='application/json') return Response(result, mimetype='application/json')
@routes.route("/mtc-interface-info/<node>/<interface>", methods=['GET', 'POST']) @routes.route(
"/mtc-interface-info/<node>/<interface>", methods=['GET', 'POST'])
@common.require_accepts_json @common.require_accepts_json
def get_mtc_interface_info(node, interface): def get_mtc_interface_info(node, interface):
""" """
......
...@@ -4,8 +4,7 @@ import jsonschema ...@@ -4,8 +4,7 @@ import jsonschema
import pytest import pytest
from inventory_provider.routes.classifier_schema import \ from inventory_provider.routes.classifier_schema import \
JUNIPER_LINK_RESPONSE_SCHEMA, PEER_INFO_RESPONSE_SCHEMA, \ JUNIPER_LINK_RESPONSE_SCHEMA, PEER_INFO_RESPONSE_SCHEMA
MTC_INTERFACE_INFO_RESPONSE_SCHEMA
DEFAULT_REQUEST_HEADERS = { DEFAULT_REQUEST_HEADERS = {
"Content-type": "application/json", "Content-type": "application/json",
...@@ -228,6 +227,7 @@ def test_mtc_info(client): ...@@ -228,6 +227,7 @@ def test_mtc_info(client):
assert rv.status_code == 200 assert rv.status_code == 200
assert rv.is_json assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
assert response_data
# schema seems wrong ... # schema seems wrong ...
# jsonschema.validate(response_data, MTC_INTERFACE_INFO_RESPONSE_SCHEMA) # jsonschema.validate(response_data, MTC_INTERFACE_INFO_RESPONSE_SCHEMA)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment