We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faa6136 commit f06236cCopy full SHA for f06236c
1 file changed
tests/unit/test_legacy_deprecations.py
@@ -62,11 +62,11 @@ def test_parse_response_handles_value_error_fallback() -> None:
62
63
64
def test_logging_handler_emits_deprecation_warning() -> None:
65
- """Verify logging_handler executes safely but warns the developer."""
+ """Verify logging_handler returns a logger and warns the developer."""
66
resp = requests.Response()
67
-
68
with pytest.warns(DeprecationWarning, match="logging_handler is deprecated"):
69
- logging_handler(resp)
+ # Pass the response to verify it absorbs positional arguments safely at runtime
+ logging_handler(resp) # type: ignore[arg-type]
70
71
72
def test_legacy_kwargs_emit_deprecation_warning(monkeypatch: pytest.MonkeyPatch) -> None:
0 commit comments