From 7e845ef92b410bdbcd18f0c9cc50562c3605ca56 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Tue, 1 Jun 2021 10:39:16 +0200 Subject: [PATCH] pep8 --- brian_polling_manager/main.py | 1 + test/test_api.py | 2 +- test/test_e2e.py | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/brian_polling_manager/main.py b/brian_polling_manager/main.py index 947a370..5e92a16 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 c8df1ff..0a647fe 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 ae130cf..7486e95 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 -- GitLab