MCPcopy
hub / github.com/pallets/werkzeug / test_basic_auth

Function test_basic_auth

tests/test_test.py:303–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301
302
303def test_basic_auth():
304 builder = EnvironBuilder(auth=("username", "password"))
305 request = builder.get_request()
306 assert request.authorization.username == "username"
307 assert request.authorization.password == "password"
308
309
310def test_auth_object():

Callers

nothing calls this directly

Calls 2

get_requestMethod · 0.95
EnvironBuilderClass · 0.90

Tested by

no test coverage detected