Skip to content

Deprecate response_###() methods and add missing HTTP status assertions#2

Closed
goodtune wants to merge 1 commit into
masterfrom
more-response-assertions
Closed

Deprecate response_###() methods and add missing HTTP status assertions#2
goodtune wants to merge 1 commit into
masterfrom
more-response-assertions

Conversation

@goodtune
Copy link
Copy Markdown
Owner

@goodtune goodtune commented Oct 2, 2025

  • Add DeprecationWarning to all response_###() methods
  • Migrate internal usage from response_###() to assert_http_###_<status_name>()
  • Add docstrings to all HTTP status code assertion methods
  • Add missing assertions per MDN HTTP status reference:
    • assert_http_103_early_hints()
    • assert_http_418_im_a_teapot()
    • assert_http_421_misdirected_request()
    • assert_http_425_too_early()
  • Exclude 102 Processing (WebDAV-specific, rarely used in Django apps)
  • Update documentation to reflect deprecation warnings

Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status

…ions

- Add `DeprecationWarning` to all `response_###()` methods
- Migrate internal usage from `response_###()` to `assert_http_###_<status_name>()`
- Add docstrings to all HTTP status code assertion methods
- Add missing assertions per MDN HTTP status reference:
  - `assert_http_103_early_hints()`
  - `assert_http_418_im_a_teapot()`
  - `assert_http_421_misdirected_request()`
  - `assert_http_425_too_early()`
- Exclude 102 Processing (WebDAV-specific, rarely used in Django apps)
- Update documentation to reflect deprecation warnings

Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status
@goodtune goodtune closed this Oct 2, 2025
@goodtune
Copy link
Copy Markdown
Owner Author

goodtune commented Oct 2, 2025

Moved to upstream in revsys#221.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant