diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-16 12:27:34 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-16 12:27:34 +0100 |
commit | 394c019f88e4decaec45b54f94f6a8a4c77d1b27 (patch) | |
tree | 5638eea740b306f6d489e7cbd203639cf1955041 /tests/oauth2/rfc6749/grant_types/test_client_credentials.py | |
parent | b71636e85f845b79b5a56de6480fcba9d1415720 (diff) | |
download | oauthlib-394c019f88e4decaec45b54f94f6a8a4c77d1b27.tar.gz |
Use unittest.mock instead of external mock
Replace the use of external 'mock' package with built-in Python
unittest.mock (present since py3.3). This also fixes all test failures
for me.
Diffstat (limited to 'tests/oauth2/rfc6749/grant_types/test_client_credentials.py')
-rw-r--r-- | tests/oauth2/rfc6749/grant_types/test_client_credentials.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/oauth2/rfc6749/grant_types/test_client_credentials.py b/tests/oauth2/rfc6749/grant_types/test_client_credentials.py index d994278..0a45ef6 100644 --- a/tests/oauth2/rfc6749/grant_types/test_client_credentials.py +++ b/tests/oauth2/rfc6749/grant_types/test_client_credentials.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import json -import mock +from unittest import mock from oauthlib.common import Request from oauthlib.oauth2.rfc6749.grant_types import ClientCredentialsGrant |