diff --git a/devrequirements.txt b/devrequirements.txt index 98610069..7ebfe87b 100644 --- a/devrequirements.txt +++ b/devrequirements.txt @@ -1,4 +1,3 @@ -mock coverage coveralls cython diff --git a/plyer/tests/test_battery.py b/plyer/tests/test_battery.py index b44d504d..619a3b28 100644 --- a/plyer/tests/test_battery.py +++ b/plyer/tests/test_battery.py @@ -13,7 +13,7 @@ from io import BytesIO from os.path import join from textwrap import dedent -from mock import patch, Mock +from unittest.mock import patch, Mock from plyer.tests.common import PlatformTest, platform_import diff --git a/plyer/tests/test_cpu.py b/plyer/tests/test_cpu.py index 8882522c..ccd22bb1 100644 --- a/plyer/tests/test_cpu.py +++ b/plyer/tests/test_cpu.py @@ -11,8 +11,8 @@ import unittest from os import environ from os.path import join -from mock import patch, Mock from textwrap import dedent +from unittest.mock import patch, Mock from plyer.tests.common import PlatformTest, platform_import, splitpath diff --git a/plyer/tests/test_devicename.py b/plyer/tests/test_devicename.py index cbb0fc4b..7dac2336 100644 --- a/plyer/tests/test_devicename.py +++ b/plyer/tests/test_devicename.py @@ -7,10 +7,11 @@ * Windows ''' +import socket import unittest -from mock import patch +from unittest.mock import patch + from plyer.tests.common import PlatformTest, platform_import -import socket class TestDeviceName(unittest.TestCase): diff --git a/plyer/tests/test_email.py b/plyer/tests/test_email.py index 60aa86f0..5c4c25e4 100644 --- a/plyer/tests/test_email.py +++ b/plyer/tests/test_email.py @@ -8,8 +8,8 @@ ''' import unittest +from unittest.mock import Mock, patch -from mock import Mock, patch from plyer.tests.common import PlatformTest, platform_import diff --git a/plyer/tests/test_facade.py b/plyer/tests/test_facade.py index b49b15f7..f264882b 100644 --- a/plyer/tests/test_facade.py +++ b/plyer/tests/test_facade.py @@ -16,7 +16,7 @@ import sys from types import MethodType -from mock import Mock, patch +from unittest.mock import Mock, patch import plyer diff --git a/plyer/tests/test_notification.py b/plyer/tests/test_notification.py index 7177ad7a..f4c6a5a9 100644 --- a/plyer/tests/test_notification.py +++ b/plyer/tests/test_notification.py @@ -13,8 +13,8 @@ from time import sleep from os.path import dirname, abspath, join +from unittest.mock import Mock, patch -from mock import Mock, patch from plyer.tests.common import PlatformTest, platform_import diff --git a/plyer/tests/test_screenshot.py b/plyer/tests/test_screenshot.py index 931fac28..94839a21 100644 --- a/plyer/tests/test_screenshot.py +++ b/plyer/tests/test_screenshot.py @@ -12,8 +12,8 @@ from os import mkdir, remove from os.path import join, expanduser, exists +from unittest.mock import patch -from mock import patch from plyer.tests.common import PlatformTest, platform_import diff --git a/plyer/tests/test_uniqueid.py b/plyer/tests/test_uniqueid.py index 629c840a..befed2d6 100644 --- a/plyer/tests/test_uniqueid.py +++ b/plyer/tests/test_uniqueid.py @@ -8,7 +8,8 @@ ''' import unittest -from mock import patch, Mock +from unittest.mock import patch, Mock + from plyer.tests.common import PlatformTest, platform_import diff --git a/plyer/tests/test_utils.py b/plyer/tests/test_utils.py index 3532b76b..9207e27b 100644 --- a/plyer/tests/test_utils.py +++ b/plyer/tests/test_utils.py @@ -12,7 +12,7 @@ ''' import unittest -from mock import patch +from unittest.mock import patch class TestUtils(unittest.TestCase): diff --git a/setup.py b/setup.py index 80f65af7..d2d17e69 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ 'ios': ['pyobjus'], 'macosx': ['pyobjus'], 'android': ['pyjnius'], - 'dev': ['mock', 'flake8'] + 'dev': ['flake8'] } } )