From 54a63a810e49f2333ae4e556639f2b6655ce9ba4 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Wed, 23 Nov 2016 22:29:36 +0100 Subject: [PATCH] Cleanup/docstring --- httpie/plugins/base.py | 3 +++ tests/test_auth_plugins.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/httpie/plugins/base.py b/httpie/plugins/base.py index 3129a80c..30d88595 100644 --- a/httpie/plugins/base.py +++ b/httpie/plugins/base.py @@ -47,6 +47,9 @@ class AuthPlugin(BasePlugin): If `auth_parse` is set to `True`, then `username` 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. """ diff --git a/tests/test_auth_plugins.py b/tests/test_auth_plugins.py index 233c599b..efd2232c 100644 --- a/tests/test_auth_plugins.py +++ b/tests/test_auth_plugins.py @@ -17,7 +17,7 @@ def dummy_auth(auth_header=BASIC_AUTH_HEADER_VALUE): return inner -def test_auth_plugin_parse_false(httpbin): +def test_auth_plugin_parse_auth_false(httpbin): class ParseFalseAuthPlugin(AuthPlugin): auth_type = 'parse-false' @@ -41,7 +41,7 @@ def test_auth_plugin_parse_false(httpbin): plugin_manager.unregister(ParseFalseAuthPlugin) -def test_auth_plugin_require_false(httpbin): +def test_auth_plugin_require_auth_false(httpbin): class RequireFalseAuthPlugin(AuthPlugin): auth_type = 'require-false' @@ -64,7 +64,7 @@ def test_auth_plugin_require_false(httpbin): plugin_manager.unregister(RequireFalseAuthPlugin) -def test_auth_plugin_prompt_false(httpbin): +def test_auth_plugin_prompt_password_false(httpbin): class PromptFalseAuthPlugin(AuthPlugin): auth_type = 'prompt-false'