tests.test_download   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_song_download() 0 9 2
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