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

pep8

parent 9bce434e
Branches
Tags
No related merge requests found
...@@ -48,19 +48,19 @@ def test_router_interfaces(router, client_with_mocked_data): ...@@ -48,19 +48,19 @@ def test_router_interfaces(router, client_with_mocked_data):
def test_snmp_ids(router, client_with_mocked_data): def test_snmp_ids(router, client_with_mocked_data):
snmp_id_list_schema = { # snmp_id_list_schema = {
"$schema": "http://json-schema.org/draft-07/schema#", # "$schema": "http://json-schema.org/draft-07/schema#",
"type": "array", # "type": "array",
"items": { # "items": {
"type": "object", # "type": "object",
"properties": { # "properties": {
"index": {"type": "string"}, # "index": {"type": "string"},
"name": {"type": "string"} # "name": {"type": "string"}
}, # },
"required": ["index", "name"], # "required": ["index", "name"],
"additionalProperties": False # "additionalProperties": False
} # }
} # }
rv = client_with_mocked_data.post( rv = client_with_mocked_data.post(
"/testing/snmp/" + router, "/testing/snmp/" + router,
......
import json # import json
import jsonschema # import jsonschema
#
DEFAULT_REQUEST_HEADERS = { # DEFAULT_REQUEST_HEADERS = {
"Content-type": "application/json", # "Content-type": "application/json",
"Accept": ["application/json"] # "Accept": ["application/json"]
} # }
def test_router_interfaces(router, client_with_mocked_data): def test_router_interfaces(router, client_with_mocked_data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment