Renamed group config option

This commit is contained in:
GeorgianaElena
2019-06-21 11:38:26 +03:00
parent da443ebd4b
commit 88a09285d2
4 changed files with 9 additions and 9 deletions

View File

@@ -129,22 +129,22 @@ def test_auth_dummy():
assert c.JupyterHub.authenticator_class == 'dummyauthenticator.DummyAuthenticator'
assert c.DummyAuthenticator.password == 'test'
from traitlets import Dict
def test_user_groups():
"""
Test setting user groups
"""
c = apply_mock_config({
'users': {
'groups': {
'extra_user_groups': {
"g1": ["u1", "u2"],
"g1": ["u3", "u4"]
"g2": ["u3", "u4"]
},
}
})
assert c.UserCreatingSpawner.user_groups == {
"g1": ["u1", "u2"],
"g1": ["u3", "u4"]
"g2": ["u3", "u4"]
}