Fix bug in unique tracks on different albums

This commit is contained in:
2023-01-19 15:20:26 -05:00
parent 6712e38689
commit 0d95f8fee8
6 changed files with 63 additions and 20 deletions

View File

@ -8,7 +8,7 @@ name: run_tests
steps:
# Run tests against Python/Flask engine backend (with pytest)
- name: coverage
- name: pytest with coverage
image: python:3.10.4
commands:
# Install dependencies
@ -16,22 +16,7 @@ steps:
- pip install poetry
- poetry install
# Start with a fresh database (which is already running as a service from Drone)
- poetry run pytest --cov-report term --cov=vrobbler tests
environment:
VROBBLER_DATABASE_URL: sqlite:///test.db
volumes:
# Mount pip cache from host
- name: pip_cache
path: /root/.cache/pip
- name: pytest
image: python:3.10.4
commands:
# Install dependencies
- cp vrobbler.conf.test vrobbler.conf
- pip install poetry
- poetry install
# Start with a fresh database (which is already running as a service from Drone)
- poetry run pytest
- poetry run pytest --cov-report term:skip-covered --cov=vrobbler tests
environment:
VROBBLER_DATABASE_URL: sqlite:///test.db
volumes: