streamrip/tests/fixtures/config.py

17 lines
339 B
Python
Raw Normal View History

2023-10-29 17:42:10 -04:00
import hashlib
import os
import pytest
from streamrip.config import Config
2023-12-21 01:21:58 -05:00
@pytest.fixture()
2023-10-29 17:42:10 -04:00
def config():
c = Config.defaults()
c.session.qobuz.email_or_userid = os.environ["QOBUZ_EMAIL"]
c.session.qobuz.password_or_token = hashlib.md5(
2023-12-21 01:21:58 -05:00
os.environ["QOBUZ_PASSWORD"].encode("utf-8"),
2023-10-29 17:42:10 -04:00
).hexdigest()
return c