File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1193,7 +1193,7 @@ def test_in_protection_space(
1193
1193
expected : bool ,
1194
1194
) -> None :
1195
1195
"""Test _in_protection_space method with various URL patterns."""
1196
- digest_auth_mw ._protection_space = { protection_space_url }
1196
+ digest_auth_mw ._protection_space = [ protection_space_url ]
1197
1197
result = digest_auth_mw ._in_protection_space (URL (request_url ))
1198
1198
assert result == expected
1199
1199
@@ -1202,11 +1202,11 @@ def test_in_protection_space_multiple_spaces(
1202
1202
digest_auth_mw : DigestAuthMiddleware ,
1203
1203
) -> None :
1204
1204
"""Test _in_protection_space with multiple protection spaces."""
1205
- digest_auth_mw ._protection_space = {
1205
+ digest_auth_mw ._protection_space = [
1206
1206
"http://example.com/api" ,
1207
1207
"http://example.com/admin/" ,
1208
1208
"http://example.com/secure/area" ,
1209
- }
1209
+ ]
1210
1210
1211
1211
# Test various URLs
1212
1212
assert digest_auth_mw ._in_protection_space (URL ("http://example.com/api" )) is True
You can’t perform that action at this time.
0 commit comments