From 3e0fbabfdd47eeedd78ff63cf682aca5e89caeca Mon Sep 17 00:00:00 2001 From: Michael Genereux Date: Thu, 5 Oct 2023 17:13:59 +0000 Subject: [PATCH] Fixed tests with betamax --- dev-requirements.txt | 2 +- requests_toolbelt/auth/http_bearer.py | 2 +- tests/test_auth_bearer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 202a17a..425a111 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,5 @@ pytest mock;python_version<"3.3" pyopenssl -git+git://github.com/sigmavirus24/betamax +git+https://github.com/betamaxpy/betamax trustme diff --git a/requests_toolbelt/auth/http_bearer.py b/requests_toolbelt/auth/http_bearer.py index 5d24706..3ad9e2d 100644 --- a/requests_toolbelt/auth/http_bearer.py +++ b/requests_toolbelt/auth/http_bearer.py @@ -4,7 +4,7 @@ from requests.auth import AuthBase -class HTTPBearerAuth(auth.AuthBase): +class HTTPBearerAuth(AuthBase): """HTTP Bearer Token Authentication """ diff --git a/tests/test_auth_bearer.py b/tests/test_auth_bearer.py index d33523c..128e1db 100644 --- a/tests/test_auth_bearer.py +++ b/tests/test_auth_bearer.py @@ -18,7 +18,7 @@ def setUp(self): def cassette(self): return self.recorder.use_cassette( 'httpbin_bearer_auth', - match_requests_on=['method', 'uri', 'digest-auth'] + match_requests_on=['method', 'uri'] ) def test_bearer(self):