Skip to content

Tests

Install dependencies

pip install -r requirements.dev.txt
pip install -r requirements.txt

Run the tests in IntelliJ

Test in intellij

Run the tests in the console

Go into the root directory of this project and run the following command. Make sure you have set the location of the cookie.json with cookie_file_path as well as application_id, application_secret and redirect_url as environment variables.

pytest -s --cov=async_spotify src/test --cov-report=xml

Build and Publish

python3 setup.py sdist
twine upload dist/*

Generate Docs

To preview the docs run PYTHONPATH=src mkdocs serve -a 0.0.0.0:8000
To publish the docs run PYTHONPATH=src mkdocs gh-deploy


Last update: January 14, 2022