https://github.com/httpie/cli/issues/242
(url)
| 70 | 'username:@example.org', |
| 71 | ]) |
| 72 | def 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 | |
| 83 | def test_missing_auth(httpbin): |
nothing calls this directly
no test coverage detected