diff --git a/brian_polling_manager/main.py b/brian_polling_manager/main.py index 947a37063f4649101ac8a6ac5001314b93172753..5e92a164b9706344ec9d558fd37ed2fd2fdc4473 100644 --- a/brian_polling_manager/main.py +++ b/brian_polling_manager/main.py @@ -96,6 +96,7 @@ def refresh(config, force=False): jsonschema.validate(result, REFRESH_RESULT_SCHEMA) # sanity return result + def _validate_config(_ctx, _param, file): """ loads, validates and returns configuration parameters diff --git a/test/test_api.py b/test/test_api.py index c8df1ff2f1efebcd02baad0b4b6bd46d2274afd5..0a647feed8c14f664ae78a5074f68bdd1835a8d1 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -26,6 +26,7 @@ def test_version(client): response_data = json.loads(rv.data.decode('utf-8')) jsonschema.validate(response_data, VERSION_SCHEMA) + @responses.activate def test_update(client): rv = client.get( @@ -35,4 +36,3 @@ def test_update(client): assert rv.is_json response_data = json.loads(rv.data.decode('utf-8')) jsonschema.validate(response_data, REFRESH_RESULT_SCHEMA) - diff --git a/test/test_e2e.py b/test/test_e2e.py index ae130cf69a2aafde621a1a858f0413f806e65c62..7486e959f447d984528a2f9e44f9e34b7c79b669 100644 --- a/test/test_e2e.py +++ b/test/test_e2e.py @@ -1,6 +1,3 @@ -import json -import tempfile - from click.testing import CliRunner import responses