Skip to content

Commit

Permalink
remove dependency on old mock (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste authored and tyjak committed Aug 15, 2024
1 parent e7b977b commit a7054c9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sys.path.insert(0, os.path.abspath('..'))

# requires PyPI mock
import mock
import unittest.mock as mock

MOCK_MODULES = [
"alsaaudio",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hassio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/test_lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions tests/test_plexstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a7054c9

Please sign in to comment.