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

pep8

parent f60dcd17
Branches
Tags
No related merge requests found
...@@ -96,6 +96,7 @@ def refresh(config, force=False): ...@@ -96,6 +96,7 @@ def refresh(config, force=False):
jsonschema.validate(result, REFRESH_RESULT_SCHEMA) # sanity jsonschema.validate(result, REFRESH_RESULT_SCHEMA) # sanity
return result return result
def _validate_config(_ctx, _param, file): def _validate_config(_ctx, _param, file):
""" """
loads, validates and returns configuration parameters loads, validates and returns configuration parameters
......
...@@ -26,6 +26,7 @@ def test_version(client): ...@@ -26,6 +26,7 @@ def test_version(client):
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, VERSION_SCHEMA) jsonschema.validate(response_data, VERSION_SCHEMA)
@responses.activate @responses.activate
def test_update(client): def test_update(client):
rv = client.get( rv = client.get(
...@@ -35,4 +36,3 @@ def test_update(client): ...@@ -35,4 +36,3 @@ def test_update(client):
assert rv.is_json assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, REFRESH_RESULT_SCHEMA) jsonschema.validate(response_data, REFRESH_RESULT_SCHEMA)
import json
import tempfile
from click.testing import CliRunner from click.testing import CliRunner
import responses import responses
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment