mirror of
https://github.com/httpie/cli.git
synced 2025-05-29 23:07:37 +02:00
Cleanup/docstring
This commit is contained in:
parent
a49774d3ab
commit
54a63a810e
@ -47,6 +47,9 @@ class AuthPlugin(BasePlugin):
|
|||||||
If `auth_parse` is set to `True`, then `username`
|
If `auth_parse` is set to `True`, then `username`
|
||||||
and `password` contain the parsed credentials.
|
and `password` contain the parsed credentials.
|
||||||
|
|
||||||
|
Use `self.raw_auth` to access the raw value passed through
|
||||||
|
`--auth, -a`.
|
||||||
|
|
||||||
Return a ``requests.auth.AuthBase`` subclass instance.
|
Return a ``requests.auth.AuthBase`` subclass instance.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -17,7 +17,7 @@ def dummy_auth(auth_header=BASIC_AUTH_HEADER_VALUE):
|
|||||||
return inner
|
return inner
|
||||||
|
|
||||||
|
|
||||||
def test_auth_plugin_parse_false(httpbin):
|
def test_auth_plugin_parse_auth_false(httpbin):
|
||||||
|
|
||||||
class ParseFalseAuthPlugin(AuthPlugin):
|
class ParseFalseAuthPlugin(AuthPlugin):
|
||||||
auth_type = 'parse-false'
|
auth_type = 'parse-false'
|
||||||
@ -41,7 +41,7 @@ def test_auth_plugin_parse_false(httpbin):
|
|||||||
plugin_manager.unregister(ParseFalseAuthPlugin)
|
plugin_manager.unregister(ParseFalseAuthPlugin)
|
||||||
|
|
||||||
|
|
||||||
def test_auth_plugin_require_false(httpbin):
|
def test_auth_plugin_require_auth_false(httpbin):
|
||||||
|
|
||||||
class RequireFalseAuthPlugin(AuthPlugin):
|
class RequireFalseAuthPlugin(AuthPlugin):
|
||||||
auth_type = 'require-false'
|
auth_type = 'require-false'
|
||||||
@ -64,7 +64,7 @@ def test_auth_plugin_require_false(httpbin):
|
|||||||
plugin_manager.unregister(RequireFalseAuthPlugin)
|
plugin_manager.unregister(RequireFalseAuthPlugin)
|
||||||
|
|
||||||
|
|
||||||
def test_auth_plugin_prompt_false(httpbin):
|
def test_auth_plugin_prompt_password_false(httpbin):
|
||||||
|
|
||||||
class PromptFalseAuthPlugin(AuthPlugin):
|
class PromptFalseAuthPlugin(AuthPlugin):
|
||||||
auth_type = 'prompt-false'
|
auth_type = 'prompt-false'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user