Skip to content

Commit 7b0b6f2

Browse files
committed
Drop mock requirement
Included in `unittest` since Python 3.3 Replace `io.open` with the builtin `open`
1 parent 804f0ea commit 7b0b6f2

46 files changed

Lines changed: 48 additions & 51 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

auth0/test/authentication/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
import unittest
55

6-
import mock
6+
from unittest import mock
77
import requests
88

99
from ...authentication.base import AuthenticationBase

auth0/test/authentication/test_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.database import Database
66

auth0/test/authentication/test_delegated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.delegated import Delegated
66

auth0/test/authentication/test_enterprise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.enterprise import Enterprise
66

auth0/test/authentication/test_get_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44
from callee.strings import Glob
55
from cryptography.hazmat.primitives import asymmetric, serialization
66

auth0/test/authentication/test_passwordless.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.passwordless import Passwordless
66

auth0/test/authentication/test_revoke_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.revoke_token import RevokeToken
66

auth0/test/authentication/test_social.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.social import Social
66

auth0/test/authentication/test_token_verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import unittest
44

55
import jwt
6-
from mock import MagicMock, patch
6+
from unittest.mock import MagicMock, patch
77

88
from ...authentication.token_verifier import (
99
AsymmetricSignatureVerifier,

auth0/test/authentication/test_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
import mock
3+
from unittest import mock
44

55
from ...authentication.users import Users
66

0 commit comments

Comments
 (0)