mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
parent
018e1f68de
commit
deb7b747cc
@ -19,7 +19,7 @@ class TestAuth:
|
||||
requests.__version__ == '0.13.6',
|
||||
reason='Redirects with prefetch=False are broken in Requests 0.13.6')
|
||||
def test_digest_auth(self, httpbin, argument_name):
|
||||
r = http('{}=digest'.format(argument_name), '--auth=user:password',
|
||||
r = http(argument_name + '=digest', '--auth=user:password',
|
||||
'GET', httpbin.url + '/digest-auth/auth/user/password')
|
||||
assert HTTP_OK in r
|
||||
assert r.json == {'authenticated': True, 'user': 'user'}
|
||||
|
Loading…
Reference in New Issue
Block a user