Skip to content

Commit

Permalink
Added tests for status code 425 definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
atatuzuner61 committed Nov 29, 2023
1 parent b37878d commit 889910c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2795,3 +2795,16 @@ def test_json_decode_persists_doc_attr(self, httpbin):
with pytest.raises(requests.exceptions.JSONDecodeError) as excinfo:
r.json()
assert excinfo.value.doc == r.text

def test_status_code_425(self):
r1 = requests.codes.get("TOO_EARLY")
r2 = requests.codes.get("too_early")
r3 = requests.codes.get("UNORDERED")
r4 = requests.codes.get("unordered")
r5 = requests.codes.get("UNORDERED_COLLECTION")
r6 = requests.codes.get("unordered_collection")

assert r1 == 425
assert r2 == 425
assert r3 == 425
assert r4 == 425

0 comments on commit 889910c

Please sign in to comment.