Do not special case *any* authenticator

No two ways to set authenticator options - just one way.
It's slightly 'ugly' because of the mixing of camel case &
snake case, but is worth the massive reductions in complexity!
This commit is contained in:
yuvipanda
2018-07-16 16:05:44 -07:00
parent 2c7f99b57c
commit cc5622995d
2 changed files with 13 additions and 24 deletions

View File

@@ -101,8 +101,8 @@ def test_auth_dummy():
"""
c = apply_mock_config({
'auth': {
'type': 'dummy',
'dummy': {
'type': 'dummyauthenticator.DummyAuthenticator',
'DummyAuthenticator': {
'password': 'test'
}
}
@@ -117,8 +117,8 @@ def test_auth_firstuse():
"""
c = apply_mock_config({
'auth': {
'type': 'firstuse',
'firstuse': {
'type': 'firstuseauthenticator.FirstUseAuthenticator',
'FirstUseAuthenticator': {
'create_users': True
}
}
@@ -129,7 +129,7 @@ def test_auth_firstuse():
def test_auth_github():
"""
Test using GitHub authenticator, which is not explicitly special cased.
Test using GitHub authenticator
"""
c = apply_mock_config({
'auth': {