summaryrefslogtreecommitdiff
path: root/tests/oauth2/rfc6749/grant_types/test_refresh_token.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-16 12:27:34 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-16 12:27:34 +0100
commit394c019f88e4decaec45b54f94f6a8a4c77d1b27 (patch)
tree5638eea740b306f6d489e7cbd203639cf1955041 /tests/oauth2/rfc6749/grant_types/test_refresh_token.py
parentb71636e85f845b79b5a56de6480fcba9d1415720 (diff)
downloadoauthlib-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_refresh_token.py')
-rw-r--r--tests/oauth2/rfc6749/grant_types/test_refresh_token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/oauth2/rfc6749/grant_types/test_refresh_token.py b/tests/oauth2/rfc6749/grant_types/test_refresh_token.py
index 074f359..0d0fd37 100644
--- a/tests/oauth2/rfc6749/grant_types/test_refresh_token.py
+++ b/tests/oauth2/rfc6749/grant_types/test_refresh_token.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 import errors