test_file() — requests Function Reference
Architecture documentation for the test_file() function in test_utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 2843fb58_0e73_11c6_26fd_57bd1c24debc["test_file()"] 81f7dd40_8de4_e5e3_d0f0_3d84ce7fbb59["TestSuperLen"] 2843fb58_0e73_11c6_26fd_57bd1c24debc -->|defined in| 81f7dd40_8de4_e5e3_d0f0_3d84ce7fbb59 style 2843fb58_0e73_11c6_26fd_57bd1c24debc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_utils.py lines 108–113
def test_file(self, tmpdir, mode, warnings_num, recwarn):
file_obj = tmpdir.join("test.txt")
file_obj.write("Test")
with file_obj.open(mode) as fd:
assert super_len(fd) == 4
assert len(recwarn) == warnings_num
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_file() do?
test_file() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_file() defined?
test_file() is defined in tests/test_utils.py at line 108.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free