mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-03 08:39:00 -04:00
Formatting
This commit is contained in:
parent
cf770892f1
commit
abb37f17fd
25 changed files with 181 additions and 78 deletions
2
tests/fixtures/clients.py
vendored
2
tests/fixtures/clients.py
vendored
|
@ -13,7 +13,7 @@ def qobuz_client():
|
|||
config = Config.defaults()
|
||||
config.session.qobuz.email_or_userid = os.environ["QOBUZ_EMAIL"]
|
||||
config.session.qobuz.password_or_token = hashlib.md5(
|
||||
os.environ["QOBUZ_PASSWORD"].encode("utf-8")
|
||||
os.environ["QOBUZ_PASSWORD"].encode("utf-8"),
|
||||
).hexdigest()
|
||||
if "QOBUZ_APP_ID" in os.environ and "QOBUZ_SECRETS" in os.environ:
|
||||
config.session.qobuz.app_id = os.environ["QOBUZ_APP_ID"]
|
||||
|
|
4
tests/fixtures/config.py
vendored
4
tests/fixtures/config.py
vendored
|
@ -6,11 +6,11 @@ import pytest
|
|||
from streamrip.config import Config
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture()
|
||||
def config():
|
||||
c = Config.defaults()
|
||||
c.session.qobuz.email_or_userid = os.environ["QOBUZ_EMAIL"]
|
||||
c.session.qobuz.password_or_token = hashlib.md5(
|
||||
os.environ["QOBUZ_PASSWORD"].encode("utf-8")
|
||||
os.environ["QOBUZ_PASSWORD"].encode("utf-8"),
|
||||
).hexdigest()
|
||||
return c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue