MCPcopy
hub / github.com/encode/starlette / test_hidden_password

Function test_hidden_password

tests/test_datastructures.py:89–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88
89def test_hidden_password() -> None:
90 u = URL("https://example.org/path/to/somewhere")
91 assert repr(u) == "URL('https://example.org/path/to/somewhere')"
92
93 u = URL("https://username@example.org/path/to/somewhere")
94 assert repr(u) == "URL('https://username@example.org/path/to/somewhere')"
95
96 u = URL("https://username:password@example.org/path/to/somewhere")
97 assert repr(u) == "URL('https://username:********@example.org/path/to/somewhere')"
98
99
100def test_csv() -> None:

Callers

nothing calls this directly

Calls 1

URLClass · 0.90

Tested by

no test coverage detected