Home / Function/ test_pragmas() — requests Function Reference

test_pragmas() — requests Function Reference

Architecture documentation for the test_pragmas() function in test_utils.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  587fdc00_1be3_40bd_d909_599c083a320d["test_pragmas()"]
  7b9bc687_6c61_d56e_8a1d_71fe58dce6c4["TestContentEncodingDetection"]
  587fdc00_1be3_40bd_d909_599c083a320d -->|defined in| 7b9bc687_6c61_d56e_8a1d_71fe58dce6c4
  style 587fdc00_1be3_40bd_d909_599c083a320d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_utils.py lines 381–384

    def test_pragmas(self, content):
        encodings = get_encodings_from_content(content)
        assert len(encodings) == 1
        assert encodings[0] == "UTF-8"

Domain

Subdomains

Defined In

Frequently Asked Questions

What does test_pragmas() do?
test_pragmas() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_pragmas() defined?
test_pragmas() is defined in tests/test_utils.py at line 381.

Analyze Your Own Codebase

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

Try Supermodel Free