Skip to content

Commit 6a121b1

Browse files
committed
update tests
1 parent c7569b0 commit 6a121b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_client_middleware_digest_auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ def test_in_protection_space(
11931193
expected: bool,
11941194
) -> None:
11951195
"""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]
11971197
result = digest_auth_mw._in_protection_space(URL(request_url))
11981198
assert result == expected
11991199

@@ -1202,11 +1202,11 @@ def test_in_protection_space_multiple_spaces(
12021202
digest_auth_mw: DigestAuthMiddleware,
12031203
) -> None:
12041204
"""Test _in_protection_space with multiple protection spaces."""
1205-
digest_auth_mw._protection_space = {
1205+
digest_auth_mw._protection_space = [
12061206
"http://example.com/api",
12071207
"http://example.com/admin/",
12081208
"http://example.com/secure/area",
1209-
}
1209+
]
12101210

12111211
# Test various URLs
12121212
assert digest_auth_mw._in_protection_space(URL("http://example.com/api")) is True

0 commit comments

Comments
 (0)