tests.test_download.test_song_download()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 2
nop 0
1
import pytest
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
from univk_audio import AsyncVKMusic
3
4
5
@pytest.mark.asyncio
6
async def test_song_download():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
7
    cookies = "id=816380914; first_name=Shantel;" \
8
    "photo_50=https%3A%2F%2Fvk.com%2Fimages%2Fcamera_50.png"
9
    link = "/download.php?id=32350711_456239163;35_43a58a32cf9121093e_09a88cef1c4bb81fb3" \
10
    "&hash=f208cd6809ec0a6c42625495b9ae032b8809b70485a3c480ccdd0e629ab42e31"
11
    async with AsyncVKMusic(cookies=cookies) as music:
12
        is_downloaded = await music.download(link=link, path="test.mp3")
13
        assert is_downloaded
14