Update tests to check for newer location of idle culler

This commit is contained in:
YuviPanda
2020-04-27 17:07:54 +05:30
parent 474005cbd1
commit 41474e97e3

View File

@@ -213,7 +213,7 @@ def test_cull_service_default():
c = apply_mock_config({}) c = apply_mock_config({})
cull_cmd = [ cull_cmd = [
sys.executable, '-m', 'tljh.cull_idle_servers', sys.executable, '-m', 'jupyterhub_idle_culler',
'--timeout=600', '--cull-every=60', '--concurrency=5', '--timeout=600', '--cull-every=60', '--concurrency=5',
'--max-age=0' '--max-age=0'
] ]
@@ -238,7 +238,7 @@ def test_set_cull_service():
} }
}) })
cull_cmd = [ cull_cmd = [
sys.executable, '-m', 'tljh.cull_idle_servers', sys.executable, '-m', 'jupyterhub_idle_culler',
'--timeout=600', '--cull-every=10', '--concurrency=5', '--timeout=600', '--cull-every=10', '--concurrency=5',
'--max-age=60', '--cull-users' '--max-age=60', '--cull-users'
] ]
@@ -261,7 +261,7 @@ def test_load_secrets(tljh_dir):
c = apply_mock_config(tljh_config) c = apply_mock_config(tljh_config)
assert c.TraefikTomlProxy.traefik_api_password == "traefik-password" assert c.TraefikTomlProxy.traefik_api_password == "traefik-password"
def test_auth_native(): def test_auth_native():
""" """
Test setting Native Authenticator Test setting Native Authenticator