Home / Function/ test_params_original_order_is_preserved_by_default() — requests Function Reference

test_params_original_order_is_preserved_by_default() — requests Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_requests.py lines 167–176

    def test_params_original_order_is_preserved_by_default(self):
        param_ordered_dict = collections.OrderedDict(
            (("z", 1), ("a", 1), ("k", 1), ("d", 1))
        )
        session = requests.Session()
        request = requests.Request(
            "GET", "http://example.com/", params=param_ordered_dict
        )
        prep = session.prepare_request(request)
        assert prep.url == "http://example.com/?z=1&a=1&k=1&d=1"

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free