test_different_encodings_dont_break_post() — requests Function Reference
Architecture documentation for the test_different_encodings_dont_break_post() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 166c6fe9_76c2_37c1_6689_f27ac7399a3b["test_different_encodings_dont_break_post()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 166c6fe9_76c2_37c1_6689_f27ac7399a3b -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 166c6fe9_76c2_37c1_6689_f27ac7399a3b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1072–1080
def test_different_encodings_dont_break_post(self, httpbin):
with open(__file__, "rb") as f:
r = requests.post(
httpbin("post"),
data={"stuff": json.dumps({"a": 123})},
params={"blah": "asdf1234"},
files={"file": ("test_requests.py", f)},
)
assert r.status_code == 200
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_different_encodings_dont_break_post() do?
test_different_encodings_dont_break_post() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_different_encodings_dont_break_post() defined?
test_different_encodings_dont_break_post() is defined in tests/test_requests.py at line 1072.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free