diff --git a/test/test_classifier_routes.py b/test/test_classifier_routes.py index d284d9d16afb25a0bd9d95e66aff3f0cdd1b635f..e4ec2b5d6e696bd9d130b5e87a0c3ed08cb34b8c 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