test_POSTBIN_GET_POST_FILES() — requests Function Reference
Architecture documentation for the test_POSTBIN_GET_POST_FILES() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 5a7ef914_783e_35c5_ee64_9048fd0140ad["test_POSTBIN_GET_POST_FILES()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 5a7ef914_783e_35c5_ee64_9048fd0140ad -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 5a7ef914_783e_35c5_ee64_9048fd0140ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 810–825
def test_POSTBIN_GET_POST_FILES(self, httpbin):
url = httpbin("post")
requests.post(url).raise_for_status()
post1 = requests.post(url, data={"some": "data"})
assert post1.status_code == 200
with open("requirements-dev.txt") as f:
post2 = requests.post(url, files={"some": f})
assert post2.status_code == 200
post4 = requests.post(url, data='[{"some": "json"}]')
assert post4.status_code == 200
with pytest.raises(ValueError):
requests.post(url, files=["bad file data"])
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_POSTBIN_GET_POST_FILES() do?
test_POSTBIN_GET_POST_FILES() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_POSTBIN_GET_POST_FILES() defined?
test_POSTBIN_GET_POST_FILES() is defined in tests/test_requests.py at line 810.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free