mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-18 17:25:22 -04:00
16 lines
339 B
Python
16 lines
339 B
Python
import hashlib
|
|
import os
|
|
|
|
import pytest
|
|
|
|
from streamrip.config import Config
|
|
|
|
|
|
@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"),
|
|
).hexdigest()
|
|
return c
|