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

pep8

parent b6ec6c81
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ def get_trap_metadata(source_equipment, interface):
return Response(result, mimetype="application/json")
@routes.route("/peer-info/<address>", methods=['GET', 'POST'])
@common.require_accepts_json
def peer_info(address):
......
......@@ -85,7 +85,7 @@ def test_peer_info(client_with_mocked_data, peer_address, peer_type):
rv = client_with_mocked_data.get(
'/classifier/peer-info/%s' % peer_address,
headers = DEFAULT_REQUEST_HEADERS)
headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200
assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8'))
......@@ -101,5 +101,5 @@ def test_peer_not_found(client_with_mocked_data):
rv = client_with_mocked_data.get(
'/classifier/peer-info/1.2.3.4.5',
headers = DEFAULT_REQUEST_HEADERS)
headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 404
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment