[WIP] Monkeypatch tests (#448)

* Parameterize test_internals.py

* Create test_spotify_tools.py

* Monkeypatch pafy.download

* Monkeypatch YouTube search page

* Replace globals with fixtures

* Add missing urllib import, re-ordering and rename test_with_metadata.py

* Avoid creating temp directory in current working directory during test

* Update CHANGES.md
This commit is contained in:
Ritiek Malhotra
2018-12-26 17:15:56 +05:30
committed by GitHub
parent bfe958dadc
commit 51b01fc448
16 changed files with 523 additions and 377 deletions

View File

@@ -1,3 +1,8 @@
import spotipy
import urllib
import os
from logzero import logger as log
from spotdl import const
from spotdl import metadata
from spotdl import convert
@@ -5,10 +10,6 @@ from spotdl import internals
from spotdl import spotify_tools
from spotdl import youtube_tools
import spotipy
from logzero import logger as log
import os
class CheckExists:
def __init__(self, music_file, meta_tags=None):