Skip to content

Commit

Permalink
Replace mock with unittest.mock
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Jul 1, 2020
1 parent 647cf78 commit f73ddd3
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Expand Up @@ -3,8 +3,8 @@
from queue import PriorityQueue
import json
import threading
from unittest import mock

import mock
from mopidy import models
import pykka

Expand Down
3 changes: 1 addition & 2 deletions tests/dummy_mopidy.py
@@ -1,8 +1,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import queue

import mock
from unittest import mock

from mopidy import core, models

Expand Down
3 changes: 1 addition & 2 deletions tests/test_backend.py
@@ -1,8 +1,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import logging

import mock
from unittest import mock

from mopidy import backend as backend_api
from mopidy import models
Expand Down
3 changes: 1 addition & 2 deletions tests/test_client.py
@@ -1,8 +1,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import time

import mock
from unittest import mock

from pandora.client import APIClient
from pandora.models.station import GenreStationList, StationList, Station
Expand Down
2 changes: 1 addition & 1 deletion tests/test_extension.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import mock
from unittest import mock

from mopidy_pandora import Extension

Expand Down
3 changes: 1 addition & 2 deletions tests/test_frontend.py
@@ -1,8 +1,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import time

import mock
from unittest import mock

from mopidy import listener, models

Expand Down
3 changes: 1 addition & 2 deletions tests/test_library.py
Expand Up @@ -2,8 +2,7 @@

import logging
import time

import mock
from unittest import mock

from mopidy import models

Expand Down
2 changes: 1 addition & 1 deletion tests/test_listener.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import, unicode_literals

import mock
from unittest import mock

from mopidy import models

Expand Down
2 changes: 1 addition & 1 deletion tests/test_playback.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import mock
from unittest import mock

from mopidy import audio, models

Expand Down
2 changes: 1 addition & 1 deletion tests/test_uri.py
Expand Up @@ -4,8 +4,8 @@
from mopidy import models

from pandora.models.station import GenreStation, Station
from unittest import mock

import mock
import pytest

from mopidy_pandora.uri import (
Expand Down
3 changes: 1 addition & 2 deletions tests/test_utils.py
Expand Up @@ -8,8 +8,7 @@
import json

import logging

import mock
from unittest import mock

import requests

Expand Down

0 comments on commit f73ddd3

Please sign in to comment.