[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-04-24 00:10:25 +00:00
parent 836056f404
commit e6994aab2d
2 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -59,7 +59,7 @@ default = {
"concurrency": 5,
"users": False,
"max_age": 0,
"remove_named_servers": False
"remove_named_servers": False,
},
"configurator": {"enabled": False},
},