aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-10-07 01:06:00 +0000
committerMike Crute <mike@crute.us>2017-10-07 01:06:02 +0000
commit1ff624aaf720f6e953c8475ad56a7a59f47ea956 (patch)
treee7ada66e9bb444d461720983f1b0e70bdf5aafba /tests
parent44570223ea9c72ef8c89ea76632df1ecb69b5fab (diff)
downloadpydora-1ff624aaf720f6e953c8475ad56a7a59f47ea956.tar.bz2
pydora-1ff624aaf720f6e953c8475ad56a7a59f47ea956.tar.xz
pydora-1ff624aaf720f6e953c8475ad56a7a59f47ea956.zip
Import directly from modules
Importing from the base of a module is deprecated and will be removed in a future major version. Nothing internally should be doing this.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pandora/test_clientbuilder.py3
-rw-r--r--tests/test_pandora/test_models.py7
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_pandora/test_clientbuilder.py b/tests/test_pandora/test_clientbuilder.py
index 5ac6e7d..aaccdf8 100644
--- a/tests/test_pandora/test_clientbuilder.py
+++ b/tests/test_pandora/test_clientbuilder.py
@@ -3,7 +3,8 @@ from unittest import TestCase
3 3
4import pandora.clientbuilder as cb 4import pandora.clientbuilder as cb
5from pandora.py2compat import Mock 5from pandora.py2compat import Mock
6from pandora import APIClient, DEFAULT_API_HOST 6from pandora.client import APIClient
7from pandora.transport import DEFAULT_API_HOST
7 8
8 9
9class TestTranslatingDict(TestCase): 10class TestTranslatingDict(TestCase):
diff --git a/tests/test_pandora/test_models.py b/tests/test_pandora/test_models.py
index 37a760f..2ae7d11 100644
--- a/tests/test_pandora/test_models.py
+++ b/tests/test_pandora/test_models.py
@@ -1,12 +1,15 @@
1from unittest import TestCase 1from unittest import TestCase
2from datetime import datetime 2from datetime import datetime
3from pandora.py2compat import Mock, patch 3from pandora.py2compat import Mock, patch
4from pandora import APIClient 4
5from pandora.models.pandora import AdItem, PlaylistModel, SearchResultItem, SearchResult 5from pandora.client import APIClient
6from pandora.errors import ParameterMissing 6from pandora.errors import ParameterMissing
7from pandora.models.pandora import SearchResult
8from pandora.models.pandora import AdItem, PlaylistModel, SearchResultItem
7 9
8import pandora.models as m 10import pandora.models as m
9 11
12
10class TestField(TestCase): 13class TestField(TestCase):
11 14
12 def test_defaults(self): 15 def test_defaults(self):