Commit 9b5880d8 authored by Javinator9889's avatar Javinator9889 🎼

In Tests, pass the downloader attribute to the class...

In Tests, pass the downloader attribute to the class "YouTubeMetadataIdentifier" in case AcoustID fails
parent 09e7a555
Pipeline #86 passed with stage
in 4 minutes and 7 seconds
......@@ -22,7 +22,7 @@ class IdentifierTest(unittest.TestCase):
audio, data = downloader.download()
with open("hello.m4a", "wb") as song:
song.write(data)
identifier = YouTubeMetadataIdentifier(audio=data)
identifier = YouTubeMetadataIdentifier(audio=data, downloader=downloader)
valid = identifier.identify_audio()
assert valid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment