diff options
author | Mike Crute <mike@crute.us> | 2019-04-02 02:09:49 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-04-02 02:09:49 +0000 |
commit | b9fe16fc341d516b52d282f67be6b2ae791aa84f (patch) | |
tree | 333bccd7b7e61eda3d45ea057f49761ceb01e938 /tests | |
parent | 7b7c0071d2bab85fbf104d66b603782999b904a5 (diff) | |
download | pydora-b9fe16fc341d516b52d282f67be6b2ae791aa84f.tar.bz2 pydora-b9fe16fc341d516b52d282f67be6b2ae791aa84f.tar.xz pydora-b9fe16fc341d516b52d282f67be6b2ae791aa84f.zip |
Remove python 2 compatability
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pandora/test_client.py | 2 | ||||
-rw-r--r-- | tests/test_pandora/test_clientbuilder.py | 2 | ||||
-rw-r--r-- | tests/test_pandora/test_models.py | 4 | ||||
-rw-r--r-- | tests/test_pandora/test_transport.py | 2 | ||||
-rw-r--r-- | tests/test_pandora/test_util.py | 2 | ||||
-rw-r--r-- | tests/test_pydora/test_utils.py | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_pandora/test_client.py b/tests/test_pandora/test_client.py index d24ea28..5bd200c 100644 --- a/tests/test_pandora/test_client.py +++ b/tests/test_pandora/test_client.py | |||
@@ -1,9 +1,9 @@ | |||
1 | from unittest import TestCase | 1 | from unittest import TestCase |
2 | from unittest.mock import Mock, call, patch | ||
2 | 3 | ||
3 | from pandora import errors | 4 | from pandora import errors |
4 | from pandora.models.pandora import AdItem, AdditionalAudioUrl | 5 | from pandora.models.pandora import AdItem, AdditionalAudioUrl |
5 | from pandora.client import APIClient, BaseAPIClient | 6 | from pandora.client import APIClient, BaseAPIClient |
6 | from pandora.py2compat import Mock, call, patch | ||
7 | from tests.test_pandora.test_models import TestAdItem | 7 | from tests.test_pandora.test_models import TestAdItem |
8 | 8 | ||
9 | 9 | ||
diff --git a/tests/test_pandora/test_clientbuilder.py b/tests/test_pandora/test_clientbuilder.py index 0105c09..af0e219 100644 --- a/tests/test_pandora/test_clientbuilder.py +++ b/tests/test_pandora/test_clientbuilder.py | |||
@@ -1,8 +1,8 @@ | |||
1 | import os | 1 | import os |
2 | from unittest import TestCase | 2 | from unittest import TestCase |
3 | from unittest.mock import Mock | ||
3 | 4 | ||
4 | import pandora.clientbuilder as cb | 5 | import pandora.clientbuilder as cb |
5 | from pandora.py2compat import Mock | ||
6 | from pandora.client import APIClient | 6 | from pandora.client import APIClient |
7 | from pandora.transport import DEFAULT_API_HOST | 7 | from pandora.transport import DEFAULT_API_HOST |
8 | 8 | ||
diff --git a/tests/test_pandora/test_models.py b/tests/test_pandora/test_models.py index 410b0de..13ca366 100644 --- a/tests/test_pandora/test_models.py +++ b/tests/test_pandora/test_models.py | |||
@@ -1,6 +1,6 @@ | |||
1 | from unittest import TestCase | 1 | from unittest import TestCase |
2 | from datetime import datetime | 2 | from datetime import datetime |
3 | from pandora.py2compat import Mock, patch | 3 | from unittest.mock import Mock, patch |
4 | 4 | ||
5 | from pandora.client import APIClient | 5 | from pandora.client import APIClient |
6 | from pandora.errors import ParameterMissing | 6 | from pandora.errors import ParameterMissing |
@@ -21,7 +21,7 @@ class TestField(TestCase): | |||
21 | 21 | ||
22 | class TestModelMetaClass(TestCase): | 22 | class TestModelMetaClass(TestCase): |
23 | 23 | ||
24 | class TestModel(m.with_metaclass(m.ModelMetaClass, object)): | 24 | class TestModel(object, metaclass=m.ModelMetaClass): |
25 | 25 | ||
26 | foo = "bar" | 26 | foo = "bar" |
27 | a_field = m.Field("testing") | 27 | a_field = m.Field("testing") |
diff --git a/tests/test_pandora/test_transport.py b/tests/test_pandora/test_transport.py index ff9c572..862a12f 100644 --- a/tests/test_pandora/test_transport.py +++ b/tests/test_pandora/test_transport.py | |||
@@ -4,7 +4,7 @@ import json | |||
4 | import random | 4 | import random |
5 | import requests | 5 | import requests |
6 | from unittest import TestCase | 6 | from unittest import TestCase |
7 | from pandora.py2compat import Mock, call, patch | 7 | from unittest.mock import Mock, call, patch |
8 | 8 | ||
9 | from pandora.errors import InvalidAuthToken, PandoraException | 9 | from pandora.errors import InvalidAuthToken, PandoraException |
10 | from tests.test_pandora.test_clientbuilder import TestSettingsDictBuilder | 10 | from tests.test_pandora.test_clientbuilder import TestSettingsDictBuilder |
diff --git a/tests/test_pandora/test_util.py b/tests/test_pandora/test_util.py index 2b4ca83..d8c3876 100644 --- a/tests/test_pandora/test_util.py +++ b/tests/test_pandora/test_util.py | |||
@@ -1,6 +1,6 @@ | |||
1 | import warnings | 1 | import warnings |
2 | from unittest import TestCase | 2 | from unittest import TestCase |
3 | from pandora.py2compat import patch | 3 | from unittest.mock import patch |
4 | 4 | ||
5 | from pandora import util | 5 | from pandora import util |
6 | 6 | ||
diff --git a/tests/test_pydora/test_utils.py b/tests/test_pydora/test_utils.py index 9900913..5dca83c 100644 --- a/tests/test_pydora/test_utils.py +++ b/tests/test_pydora/test_utils.py | |||
@@ -1,9 +1,9 @@ | |||
1 | from unittest import TestCase | 1 | from unittest import TestCase |
2 | from unittest.mock import Mock, patch | ||
2 | 3 | ||
3 | from pandora.client import APIClient | 4 | from pandora.client import APIClient |
4 | from pandora.errors import InvalidAuthToken, ParameterMissing | 5 | from pandora.errors import InvalidAuthToken, ParameterMissing |
5 | from pandora.models.pandora import Station, AdItem, PlaylistItem | 6 | from pandora.models.pandora import Station, AdItem, PlaylistItem |
6 | from pandora.py2compat import Mock, patch | ||
7 | from pydora.utils import iterate_forever | 7 | from pydora.utils import iterate_forever |
8 | 8 | ||
9 | 9 | ||