test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE() — requests Function Reference
Architecture documentation for the test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 942aa6a4_aee9_3863_4e9a_fafcb3ae9ced["test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 942aa6a4_aee9_3863_4e9a_fafcb3ae9ced -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 942aa6a4_aee9_3863_4e9a_fafcb3ae9ced fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 231–241
def test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE(self, httpbin):
byte_str = b"test"
r = requests.post(
httpbin("redirect-to"),
data=io.BytesIO(byte_str),
params={"url": "post", "status_code": 307},
)
assert r.status_code == 200
assert r.history[0].status_code == 307
assert r.history[0].is_redirect
assert r.json()["data"] == byte_str.decode("utf-8")
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE() do?
test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE() defined?
test_HTTP_307_ALLOW_REDIRECT_POST_WITH_SEEKABLE() is defined in tests/test_requests.py at line 231.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free