From 3d05d98400ad5bcd3515ad167a78ff0049ed941c Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Wed, 27 Feb 2019 15:35:52 +0100 Subject: [PATCH] pep8 --- inventory_provider/routes/classifier.py | 1 + test/test_classifier_routes.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py index 9f8f6915..0d66e89e 100644 --- a/inventory_provider/routes/classifier.py +++ b/inventory_provider/routes/classifier.py @@ -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): diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py index e1fd5353..bd783d52 100644 --- a/test/test_classifier_routes.py +++ b/test/test_classifier_routes.py @@ -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 -- GitLab