tests.test_auth   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_auth() 0 7 2
1
import pytest
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
from univk_audio import AsyncVKAuth
3
4
5
@pytest.mark.asyncio
6
async def test_auth():
0 ignored issues
show
introduced by
Missing function or method docstring
Loading history...
7
    login = "8613402562575"
8
    password = "cmkkKFGt58aW"
9
    async with AsyncVKAuth(login=login, password=password) as auth:
10
        cookies = await auth.get_auth_cookies()
11
        assert cookies == "id=816380914; first_name=Shantel; " \
12
        "photo_50=https%3A%2F%2Fvk.com%2Fimages%2Fcamera_50.png"
13