File: config.py

package info (click to toggle)
streamrip 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,560 kB
  • sloc: python: 6,308; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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