@@ -66,7 +66,7 @@ def test_default_public_false_with_scopes(
6666 test_app = app_factory (
6767 upstream_url = source_api_server ,
6868 default_public = False ,
69- private_endpoints = {r"^/collections$" : [("POST" , [ "collection:create" ] )]},
69+ private_endpoints = {r"^/collections$" : [("POST" , "collection:create" )]},
7070 )
7171 valid_auth_token = token_builder (token )
7272
@@ -84,31 +84,31 @@ def test_default_public_false_with_scopes(
8484 [
8585 pytest .param (
8686 "" ,
87- {r"^/*" : [("POST" , [ "collection:create" ] )]},
87+ {r"^/*" : [("POST" , "collection:create" )]},
8888 "/collections" ,
8989 "POST" ,
9090 False ,
9191 id = "empty scopes + private endpoint" ,
9292 ),
9393 pytest .param (
9494 "openid profile collection:createbutnotcreate" ,
95- {r"^/*" : [("POST" , [ "collection:create" ] )]},
95+ {r"^/*" : [("POST" , "collection:create" )]},
9696 "/collections" ,
9797 "POST" ,
9898 False ,
9999 id = "invalid scopes + private endpoint" ,
100100 ),
101101 pytest .param (
102102 "openid profile collection:create somethingelse" ,
103- {r"^/*" : [("POST" , [] )]},
103+ {r"^/*" : [("POST" , "" )]},
104104 "/collections" ,
105105 "POST" ,
106106 True ,
107107 id = "valid scopes + private endpoint without required scopes" ,
108108 ),
109109 pytest .param (
110110 "openid" ,
111- {r"^/collections/.*/items$" : [("POST" , [ "collection:create" ] )]},
111+ {r"^/collections/.*/items$" : [("POST" , "collection:create" )]},
112112 "/collections" ,
113113 "GET" ,
114114 True ,
0 commit comments