mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Increase coverage (#218)
* Monkeypatch fetch user and use pytest.tempdir * Cover spotify_tools.grab_album() * Cover avconv conversion * Cover grab_single() * Reduce code repetition * Move grab_playlist() to spotify_tools.py * Move Spotify specific functions to spotify_tools.py * Refactoring * Return track list from write_tracks() * Fix tests * Cover more cases in generate_youtube_url() * Test for unavailable audio streams * Test for filename without spaces * handle.py 100% coverage * Improve config tests * Speed up tests * Install avconv and libfdk-aac * Some cleaning * FFmpeg with libfdk-aac, libopus * Some refactoring * Convert tmpdir to string * Cover YouTube title when downloading from list * Explicitly cover some internals.py functions
This commit is contained in:
@@ -5,7 +5,6 @@ python:
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
before_install:
|
||||
- sudo apt-get -qq update
|
||||
- pip install tinydownload
|
||||
- pip install codecov
|
||||
- pip install pytest-cov
|
||||
@@ -25,15 +24,18 @@ addons:
|
||||
- libxcb1-dev
|
||||
- libxcb-shm0-dev
|
||||
- libxcb-xfixes0-dev
|
||||
- libfdk-aac-dev
|
||||
- libopus-dev
|
||||
- pkg-config
|
||||
- texinfo
|
||||
- zlib1g-dev
|
||||
- yasm
|
||||
- nasm
|
||||
- libmp3lame-dev
|
||||
- libav-tools
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- tinydownload 05861434675432854607 -o ~/bin/ffmpeg
|
||||
- tinydownload 22684734659253158385 -o ~/bin/ffmpeg
|
||||
- chmod 755 ~/bin/ffmpeg
|
||||
script: python -m pytest test --cov=.
|
||||
after_success: codecov
|
||||
|
||||
Reference in New Issue
Block a user