Home / Function/ test_can_send_file_object_with_non_string_filename() — requests Function Reference

test_can_send_file_object_with_non_string_filename() — requests Function Reference

Architecture documentation for the test_can_send_file_object_with_non_string_filename() function in test_requests.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  fda6432c_bbff_f003_3c92_ea3621d3cfd6["test_can_send_file_object_with_non_string_filename()"]
  22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"]
  fda6432c_bbff_f003_3c92_ea3621d3cfd6 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14
  style fda6432c_bbff_f003_3c92_ea3621d3cfd6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 1855–1861

    def test_can_send_file_object_with_non_string_filename(self, httpbin):
        f = io.BytesIO()
        f.name = 2
        r = requests.Request("POST", httpbin("post"), files={"f": f})
        p = r.prepare()

        assert "multipart/form-data" in p.headers["Content-Type"]

Domain

Subdomains

Frequently Asked Questions

What does test_can_send_file_object_with_non_string_filename() do?
test_can_send_file_object_with_non_string_filename() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_can_send_file_object_with_non_string_filename() defined?
test_can_send_file_object_with_non_string_filename() is defined in tests/test_requests.py at line 1855.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free