@@ -43,8 +43,10 @@ def config(sqlite_or_postgresql_database_uri):
4343 "authenticators" : [
4444 {
4545 "provider" : "toy" ,
46- "authenticator" : "tiled.authenticators:DictionaryAuthenticator" ,
47- "args" : {"users_to_passwords" : {"alice" : "secret1" , "bob" : "secret2" }},
46+ "authenticator" : {
47+ "type" : "tiled.authenticators:DictionaryAuthenticator" ,
48+ "users_to_passwords" : {"alice" : "secret1" , "bob" : "secret2" },
49+ },
4850 }
4951 ],
5052 "database" : {
@@ -260,15 +262,17 @@ def test_multiple_providers(enter_username_password, config, monkeypatch):
260262 [
261263 {
262264 "provider" : "second" ,
263- "authenticator" : "tiled.authenticators:DictionaryAuthenticator" ,
264- "args" : {"users_to_passwords" : {"cara" : "secret3" , "doug" : "secret4" }},
265+ "authenticator" : {
266+ "type" : "tiled.authenticators:DictionaryAuthenticator" ,
267+ "users_to_passwords" : {"cara" : "secret3" , "doug" : "secret4" },
268+ },
265269 },
266270 {
267271 "provider" : "third" ,
268- "authenticator" : "tiled.authenticators:DictionaryAuthenticator" ,
269- "args " : {
272+ "authenticator" : {
273+ "type " : "tiled.authenticators:DictionaryAuthenticator" ,
270274 # Duplicate 'cara' username.
271- "users_to_passwords" : {"cara" : "secret5" , "emilia" : "secret6" }
275+ "users_to_passwords" : {"cara" : "secret5" , "emilia" : "secret6" },
272276 },
273277 },
274278 ],
@@ -292,15 +296,17 @@ def test_multiple_providers_name_collision(config):
292296 config ["authenticators" ] = [
293297 {
294298 "provider" : "some_name" ,
295- "authenticator" : "tiled.authenticators:DictionaryAuthenticator" ,
296- "args" : {"users_to_passwords" : {"cara" : "secret3" , "doug" : "secret4" }},
299+ "authenticator" : {
300+ "type" : "tiled.authenticators:DictionaryAuthenticator" ,
301+ "users_to_passwords" : {"cara" : "secret3" , "doug" : "secret4" },
302+ },
297303 },
298304 {
299305 "provider" : "some_name" , # duplicate!
300- "authenticator" : "tiled.authenticators:DictionaryAuthenticator" ,
301- "args " : {
306+ "authenticator" : {
307+ "type " : "tiled.authenticators:DictionaryAuthenticator" ,
302308 # Duplicate 'cara' username.
303- "users_to_passwords" : {"cara" : "secret5" , "emilia" : "secret6" }
309+ "users_to_passwords" : {"cara" : "secret5" , "emilia" : "secret6" },
304310 },
305311 },
306312 ]
0 commit comments