mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -193,6 +193,7 @@ def test_cull_service_default():
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def test_set_cull_service():
|
def test_set_cull_service():
|
||||||
"""
|
"""
|
||||||
Test setting cull service options
|
Test setting cull service options
|
||||||
@@ -218,12 +219,22 @@ def test_set_cull_service():
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def test_cull_service_named():
|
def test_cull_service_named():
|
||||||
"""
|
"""
|
||||||
Test default cull service settings with named server removal
|
Test default cull service settings with named server removal
|
||||||
"""
|
"""
|
||||||
c = apply_mock_config(
|
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 = [
|
cull_cmd = [
|
||||||
@@ -245,6 +256,7 @@ def test_cull_service_named():
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def test_load_secrets(tljh_dir):
|
def test_load_secrets(tljh_dir):
|
||||||
"""
|
"""
|
||||||
Test loading secret files
|
Test loading secret files
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ default = {
|
|||||||
"concurrency": 5,
|
"concurrency": 5,
|
||||||
"users": False,
|
"users": False,
|
||||||
"max_age": 0,
|
"max_age": 0,
|
||||||
"remove_named_servers": False
|
"remove_named_servers": False,
|
||||||
},
|
},
|
||||||
"configurator": {"enabled": False},
|
"configurator": {"enabled": False},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user