Deprecate response_###() methods and add missing HTTP status assertions#221
Deprecate response_###() methods and add missing HTTP status assertions#221goodtune wants to merge 1 commit into
response_###() methods and add missing HTTP status assertions#221Conversation
…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
|
While I can see |
|
I originally set out to add a couple of However, just as I was about to create the pull request, I noticed the statement that these were deprecated in the documentation! If they're not deprecated, I can add the I don't mind either way - happy to work with whichever approach you would like. That said, changing the alternative path from |
|
I just did a dig back through the history on this (#86 and #102) and encountered 2019 @frankwiles : #86 (comment)
If you're still of that mind, I'll just go ahead and remove the documentation stating that they're deprecated and remove the warnings. |
DeprecationWarningto allresponse_###()methodsresponse_###()toassert_http_###_<status_name>()assert_http_103_early_hints()assert_http_418_im_a_teapot()assert_http_421_misdirected_request()assert_http_425_too_early()Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status