From 9a3ae30782cf3bad2ceb7e9ce673900b700dec66 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Fri, 1 Mar 2019 15:05:03 +0100 Subject: [PATCH] pep8 --- test/test_classifier_routes.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py index d284d9d1..e4ec2b5d 100644 --- a/test/test_classifier_routes.py +++ b/test/test_classifier_routes.py @@ -23,7 +23,8 @@ def test_trap_metadata(client_with_mocked_data): VPN_RR_PEER_INFO_KEYS = {'vpn-rr-peer-info'} -IX_PUBLIC_PEER_INFO_KEYS = {'ix-public-peer-info', 'ix-public-peer-group', 'interfaces'} +IX_PUBLIC_PEER_INFO_KEYS = { + 'ix-public-peer-info', 'ix-public-peer-group', 'interfaces'} @pytest.mark.parametrize('peer_address,expected_response_keys', [ @@ -92,15 +93,16 @@ def test_peer_info( "type": "object", "properties": { "name": {"$ref": "#/definitions/ip-address"}, - "interface address": {"$ref": "#/definitions/interface-address"}, + "interface address": { + "$ref": "#/definitions/interface-address"}, "interface name": {"type": "string"}, "router": {"type": "string"} }, - "required": ["name", "interface address", "interface name", "router"], + "required": [ + "name", "interface address", "interface name", "router"], "additionalProperties": False } - - }, + }, "type": "object", "properties": { @@ -124,7 +126,6 @@ def test_peer_info( response_data = json.loads(rv.data.decode('utf-8')) jsonschema.validate(response_data, response_schema) - assert set(response_data.keys()) == expected_response_keys -- GitLab