Skip to content

Commit 3e3b9e6

Browse files
Align WWW-Authenticate tests with httpx2
1 parent 4b685ea commit 3e3b9e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/client/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,10 +2099,10 @@ def test_extract_field_from_www_auth_invalid_cases(
20992099

21002100
def test_extract_resource_metadata_from_www_auth_ignores_substring_param_name(self):
21012101
"""Test resource_metadata extraction ignores auth-params with longer names."""
2102-
init_response = httpx.Response(
2102+
init_response = httpx2.Response(
21032103
status_code=401,
21042104
headers={"WWW-Authenticate": 'Bearer x_resource_metadata="https://decoy.example.com"'},
2105-
request=httpx.Request("GET", "https://api.example.com/test"),
2105+
request=httpx2.Request("GET", "https://api.example.com/test"),
21062106
)
21072107

21082108
result = extract_resource_metadata_from_www_auth(init_response)

0 commit comments

Comments
 (0)