Skip to content

Commit f06236c

Browse files
committed
test: Update legacy tests
1 parent faa6136 commit f06236c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/test_legacy_deprecations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def test_parse_response_handles_value_error_fallback() -> None:
6262

6363

6464
def test_logging_handler_emits_deprecation_warning() -> None:
65-
"""Verify logging_handler executes safely but warns the developer."""
65+
"""Verify logging_handler returns a logger and warns the developer."""
6666
resp = requests.Response()
67-
6867
with pytest.warns(DeprecationWarning, match="logging_handler is deprecated"):
69-
logging_handler(resp)
68+
# Pass the response to verify it absorbs positional arguments safely at runtime
69+
logging_handler(resp) # type: ignore[arg-type]
7070

7171

7272
def test_legacy_kwargs_emit_deprecation_warning(monkeypatch: pytest.MonkeyPatch) -> None:

0 commit comments

Comments
 (0)