git reimport
This commit is contained in:
19
tests/zvk/util/test_network.py
Normal file
19
tests/zvk/util/test_network.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import pytest
|
||||
|
||||
from zvk.util.network import Network
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_request():
|
||||
net = Network({
|
||||
'net': {
|
||||
'timeout': 10
|
||||
}
|
||||
})
|
||||
net.initialize()
|
||||
|
||||
response, text = await net.get_text('http://ya.ru')
|
||||
|
||||
assert response.status == 200
|
||||
|
||||
assert len(text) > 200
|
Reference in New Issue
Block a user