From 5eb9976a01b904da96f7fa4ce9fa5e563b1d961f Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Thu, 2 Sep 2021 12:10:00 +0100 Subject: [PATCH] Import mock from unittest --- tests/handlers/test_identity.py | 2 +- tests/rest/client/test_identity.py | 2 +- tests/rest/client/test_room_access_rules.py | 2 +- tests/rest/client/v2_alpha/test_register.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/handlers/test_identity.py b/tests/handlers/test_identity.py index e8192d83b9..6a0e784dd7 100644 --- a/tests/handlers/test_identity.py +++ b/tests/handlers/test_identity.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from mock import Mock +from unittest.mock import Mock from twisted.internet import defer diff --git a/tests/rest/client/test_identity.py b/tests/rest/client/test_identity.py index bb0baa0e06..013b2049e6 100644 --- a/tests/rest/client/test_identity.py +++ b/tests/rest/client/test_identity.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from mock import Mock +from unittest.mock import Mock from twisted.internet import defer diff --git a/tests/rest/client/test_room_access_rules.py b/tests/rest/client/test_room_access_rules.py index 65d27e9165..537bb5ca9d 100644 --- a/tests/rest/client/test_room_access_rules.py +++ b/tests/rest/client/test_room_access_rules.py @@ -16,7 +16,7 @@ import json import random import string -from mock import Mock +from unittest.mock import Mock from twisted.internet import defer diff --git a/tests/rest/client/v2_alpha/test_register.py b/tests/rest/client/v2_alpha/test_register.py index ec1009abc5..f55e03bacd 100644 --- a/tests/rest/client/v2_alpha/test_register.py +++ b/tests/rest/client/v2_alpha/test_register.py @@ -20,7 +20,7 @@ import os.path import tempfile import pkg_resources -from mock import Mock +from unittest.mock import Mock from twisted.internet import defer