From 399139e6b492a0c011b1e202383d3de7d3086db4 Mon Sep 17 00:00:00 2001 From: draco Date: Tue, 26 Dec 2023 21:20:34 +0100 Subject: [PATCH] fix import paths/names --- tests/test_qobuz_client.py | 8 ++++---- tests/test_tagger.py | 2 +- tests/test_track.py | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_qobuz_client.py b/tests/test_qobuz_client.py index dd849d4..efed40a 100644 --- a/tests/test_qobuz_client.py +++ b/tests/test_qobuz_client.py @@ -4,9 +4,9 @@ import pytest from util import afor, arun from streamrip.config import Config -from streamrip.downloadable import BasicDownloadable -from streamrip.exceptions import MissingCredentials -from streamrip.qobuz_client import QobuzClient +from streamrip.client.downloadable import BasicDownloadable +from streamrip.exceptions import MissingCredentialsError +from streamrip.client.qobuz import QobuzClient logger = logging.getLogger("streamrip") @@ -18,7 +18,7 @@ def client(qobuz_client): def test_client_raises_missing_credentials(): c = Config.defaults() - with pytest.raises(MissingCredentials): + with pytest.raises(MissingCredentialsError): arun(QobuzClient(c).login()) diff --git a/tests/test_tagger.py b/tests/test_tagger.py index 7a138b7..4ff7118 100644 --- a/tests/test_tagger.py +++ b/tests/test_tagger.py @@ -3,7 +3,7 @@ from mutagen.flac import FLAC from util import arun from streamrip.metadata import * -from streamrip.tagger import tag_file +from streamrip.metadata.tagger import tag_file test_flac = "tests/silence.flac" test_cover = "tests/1x1_pixel.jpg" diff --git a/tests/test_track.py b/tests/test_track.py index 4aad9f5..eae8561 100644 --- a/tests/test_track.py +++ b/tests/test_track.py @@ -3,9 +3,9 @@ import shutil from util import arun -from streamrip.downloadable import Downloadable -from streamrip.qobuz_client import QobuzClient -from streamrip.track import PendingSingle, Track +from streamrip.client.downloadable import Downloadable +from streamrip.client.qobuz import QobuzClient +from streamrip.media.track import PendingSingle, Track def test_pending_resolve(qobuz_client: QobuzClient):