Home / Function/ test_redirecting_to_bad_url() — requests Function Reference

test_redirecting_to_bad_url() — requests Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  32c97b5c_5918_281c_e323_ebb2b3446d53["test_redirecting_to_bad_url()"]
  0e391504_f528_a095_5b1a_95d479a82586["TestPreparingURLs"]
  32c97b5c_5918_281c_e323_ebb2b3446d53 -->|defined in| 0e391504_f528_a095_5b1a_95d479a82586
  style 32c97b5c_5918_281c_e323_ebb2b3446d53 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 2765–2767

    def test_redirecting_to_bad_url(self, httpbin, url, exception):
        with pytest.raises(exception):
            requests.get(httpbin("redirect-to"), params={"url": url})

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free