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

pep8

parent 5deb876b
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,8 @@ def test_trap_metadata(client_with_mocked_data): ...@@ -23,7 +23,8 @@ def test_trap_metadata(client_with_mocked_data):
VPN_RR_PEER_INFO_KEYS = {'vpn-rr-peer-info'} 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', [ @pytest.mark.parametrize('peer_address,expected_response_keys', [
...@@ -92,15 +93,16 @@ def test_peer_info( ...@@ -92,15 +93,16 @@ def test_peer_info(
"type": "object", "type": "object",
"properties": { "properties": {
"name": {"$ref": "#/definitions/ip-address"}, "name": {"$ref": "#/definitions/ip-address"},
"interface address": {"$ref": "#/definitions/interface-address"}, "interface address": {
"$ref": "#/definitions/interface-address"},
"interface name": {"type": "string"}, "interface name": {"type": "string"},
"router": {"type": "string"} "router": {"type": "string"}
}, },
"required": ["name", "interface address", "interface name", "router"], "required": [
"name", "interface address", "interface name", "router"],
"additionalProperties": False "additionalProperties": False
} }
},
},
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -124,7 +126,6 @@ def test_peer_info( ...@@ -124,7 +126,6 @@ def test_peer_info(
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, response_schema) jsonschema.validate(response_data, response_schema)
assert set(response_data.keys()) == expected_response_keys assert set(response_data.keys()) == expected_response_keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment