From e6994aab2da54b427328ec8168af933791f28002 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Apr 2023 00:10:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_configurer.py | 14 +++++++++++++- tljh/configurer.py | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/test_configurer.py b/tests/test_configurer.py index e05d051..bbef8c4 100644 --- a/tests/test_configurer.py +++ b/tests/test_configurer.py @@ -193,6 +193,7 @@ def test_cull_service_default(): } ] + def test_set_cull_service(): """ Test setting cull service options @@ -218,12 +219,22 @@ def test_set_cull_service(): } ] + def test_cull_service_named(): """ Test default cull service settings with named server removal """ c = apply_mock_config( - {"services": {"cull": {"every": 10, "cull_users": True, "remove_named_servers": True, "max_age": 60}}} + { + "services": { + "cull": { + "every": 10, + "cull_users": True, + "remove_named_servers": True, + "max_age": 60, + } + } + } ) cull_cmd = [ @@ -245,6 +256,7 @@ def test_cull_service_named(): } ] + def test_load_secrets(tljh_dir): """ Test loading secret files diff --git a/tljh/configurer.py b/tljh/configurer.py index f731ee7..e5c2ea2 100644 --- a/tljh/configurer.py +++ b/tljh/configurer.py @@ -59,7 +59,7 @@ default = { "concurrency": 5, "users": False, "max_age": 0, - "remove_named_servers": False + "remove_named_servers": False, }, "configurator": {"enabled": False}, },