MCPcopy
hub / github.com/httpie/cli / test_only_username_in_url

Function test_only_username_in_url

tests/test_auth.py:72–80  ·  view source on GitHub ↗

https://github.com/httpie/cli/issues/242

(url)

Source from the content-addressed store, hash-verified

70 'username:@example.org',
71])
72def test_only_username_in_url(url):
73 """
74 https://github.com/httpie/cli/issues/242
75
76 """
77 args = httpie.cli.definition.parser.parse_args(args=[url], env=MockEnvironment())
78 assert args.auth
79 assert args.auth.username == 'username'
80 assert args.auth.password == ''
81
82
83def test_missing_auth(httpbin):

Callers

nothing calls this directly

Calls 2

MockEnvironmentClass · 0.85
parse_argsMethod · 0.45

Tested by

no test coverage detected