aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-04-02 02:09:49 +0000
committerMike Crute <mike@crute.us>2019-04-02 02:09:49 +0000
commitb9fe16fc341d516b52d282f67be6b2ae791aa84f (patch)
tree333bccd7b7e61eda3d45ea057f49761ceb01e938 /tests
parent7b7c0071d2bab85fbf104d66b603782999b904a5 (diff)
downloadpydora-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.py2
-rw-r--r--tests/test_pandora/test_clientbuilder.py2
-rw-r--r--tests/test_pandora/test_models.py4
-rw-r--r--tests/test_pandora/test_transport.py2
-rw-r--r--tests/test_pandora/test_util.py2
-rw-r--r--tests/test_pydora/test_utils.py2
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 @@
1from unittest import TestCase 1from unittest import TestCase
2from unittest.mock import Mock, call, patch
2 3
3from pandora import errors 4from pandora import errors
4from pandora.models.pandora import AdItem, AdditionalAudioUrl 5from pandora.models.pandora import AdItem, AdditionalAudioUrl
5from pandora.client import APIClient, BaseAPIClient 6from pandora.client import APIClient, BaseAPIClient
6from pandora.py2compat import Mock, call, patch
7from tests.test_pandora.test_models import TestAdItem 7from 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 @@
1import os 1import os
2from unittest import TestCase 2from unittest import TestCase
3from unittest.mock import Mock
3 4
4import pandora.clientbuilder as cb 5import pandora.clientbuilder as cb
5from pandora.py2compat import Mock
6from pandora.client import APIClient 6from pandora.client import APIClient
7from pandora.transport import DEFAULT_API_HOST 7from 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 @@
1from unittest import TestCase 1from unittest import TestCase
2from datetime import datetime 2from datetime import datetime
3from pandora.py2compat import Mock, patch 3from unittest.mock import Mock, patch
4 4
5from pandora.client import APIClient 5from pandora.client import APIClient
6from pandora.errors import ParameterMissing 6from pandora.errors import ParameterMissing
@@ -21,7 +21,7 @@ class TestField(TestCase):
21 21
22class TestModelMetaClass(TestCase): 22class 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
4import random 4import random
5import requests 5import requests
6from unittest import TestCase 6from unittest import TestCase
7from pandora.py2compat import Mock, call, patch 7from unittest.mock import Mock, call, patch
8 8
9from pandora.errors import InvalidAuthToken, PandoraException 9from pandora.errors import InvalidAuthToken, PandoraException
10from tests.test_pandora.test_clientbuilder import TestSettingsDictBuilder 10from 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 @@
1import warnings 1import warnings
2from unittest import TestCase 2from unittest import TestCase
3from pandora.py2compat import patch 3from unittest.mock import patch
4 4
5from pandora import util 5from 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 @@
1from unittest import TestCase 1from unittest import TestCase
2from unittest.mock import Mock, patch
2 3
3from pandora.client import APIClient 4from pandora.client import APIClient
4from pandora.errors import InvalidAuthToken, ParameterMissing 5from pandora.errors import InvalidAuthToken, ParameterMissing
5from pandora.models.pandora import Station, AdItem, PlaylistItem 6from pandora.models.pandora import Station, AdItem, PlaylistItem
6from pandora.py2compat import Mock, patch
7from pydora.utils import iterate_forever 7from pydora.utils import iterate_forever
8 8
9 9