Home / Function/ test_idna_without_version_attribute() — requests Function Reference

test_idna_without_version_attribute() — requests Function Reference

Architecture documentation for the test_idna_without_version_attribute() function in test_help.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  fb0022f7_4515_4735_ef90_c3950aa40fb3["test_idna_without_version_attribute()"]
  c813a8f6_ac27_98b0_b893_4e1a2f35d7b8["test_help.py"]
  fb0022f7_4515_4735_ef90_c3950aa40fb3 -->|defined in| c813a8f6_ac27_98b0_b893_4e1a2f35d7b8
  style fb0022f7_4515_4735_ef90_c3950aa40fb3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_help.py lines 16–21

def test_idna_without_version_attribute():
    """Older versions of IDNA don't provide a __version__ attribute, verify
    that if we have such a package, we don't blow up.
    """
    with mock.patch("requests.help.idna", new=None):
        assert info()["idna"] == {"version": ""}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does test_idna_without_version_attribute() do?
test_idna_without_version_attribute() is a function in the requests codebase, defined in tests/test_help.py.
Where is test_idna_without_version_attribute() defined?
test_idna_without_version_attribute() is defined in tests/test_help.py at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free