diff --git a/dev-requirements.txt b/dev-requirements.txt index 82318499..8d27291a 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,6 +1,5 @@ pytest>=2.5 sphinx>=1.1,<1.5 colour>=0.0.5 -mock>=1.0 pycodestyle>=1.5.7 i3ipc>=1.2.0 diff --git a/docs/conf.py b/docs/conf.py index 2b8c6247..0bb1cc55 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,7 @@ sys.path.insert(0, os.path.abspath('..')) # requires PyPI mock -import mock +import unittest.mock as mock MOCK_MODULES = [ "alsaaudio", diff --git a/tests/test_hassio.py b/tests/test_hassio.py index a6854907..e6e4ceb1 100644 --- a/tests/test_hassio.py +++ b/tests/test_hassio.py @@ -4,7 +4,7 @@ """ import unittest -from mock import patch +from unittest.mock import patch from requests import get from i3pystatus import hassio import json diff --git a/tests/test_lastfm.py b/tests/test_lastfm.py index 7225669e..f260eeae 100644 --- a/tests/test_lastfm.py +++ b/tests/test_lastfm.py @@ -3,8 +3,7 @@ """ import unittest -from mock import patch -from unittest.mock import MagicMock +from unittest.mock import patch, MagicMock from urllib.request import urlopen from i3pystatus import lastfm diff --git a/tests/test_plexstatus.py b/tests/test_plexstatus.py index d7e8dfff..7bbdb89c 100644 --- a/tests/test_plexstatus.py +++ b/tests/test_plexstatus.py @@ -3,8 +3,7 @@ """ import unittest -from mock import patch -from unittest.mock import MagicMock +from unittest.mock import patch, MagicMock from urllib.request import urlopen from i3pystatus import plexstatus