mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:59:17 +02:00
Fixed #54: Now use pytest everywhere \o/
This commit is contained in:
parent
a7758395ee
commit
099cdfa99c
65 changed files with 1466 additions and 1467 deletions
11
api/tests/test_downloader.py
Normal file
11
api/tests/test_downloader.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
|
||||
from funkwhale_api import downloader
|
||||
|
||||
|
||||
def test_can_download_audio_from_youtube_url_to_vorbis(tmpdir):
|
||||
data = downloader.download(
|
||||
'https://www.youtube.com/watch?v=tPEE9ZwTmy0',
|
||||
target_directory=tmpdir)
|
||||
assert data['audio_file_path'] == os.path.join(tmpdir, 'tPEE9ZwTmy0.ogg')
|
||||
assert os.path.exists(data['audio_file_path'])
|
Loading…
Add table
Add a link
Reference in a new issue