Skip to content
Myr

Added tests for status code 425 definitions.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ata Tuzuner · committed by Ata Tuzuner · parent b37878d · Browse files · 1 file+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−0 removed

  • tests:+13 added−0 removed

1 file+13 added−0 removed

modified:tests/test_requests.py+13 added
2793 unmodified lines
2794 r = requests.get(httpbin("bytes/20"))2795 with pytest.raises(requests.exceptions.JSONDecodeError) as excinfo:2796 r.json()2797 assert excinfo.value.doc == r.text27982799 def test_status_code_425(self):2800 r1 = requests.codes.get("TOO_EARLY")2801 r2 = requests.codes.get("too_early")2802 r3 = requests.codes.get("UNORDERED")2803 r4 = requests.codes.get("unordered")2804 r5 = requests.codes.get("UNORDERED_COLLECTION")2805 r6 = requests.codes.get("unordered_collection")28062807 assert r1 == 4252808 assert r2 == 4252809 assert r3 == 4252810 assert r4 == 425