Mark tests requiring network access

This commit is contained in:
Lonami Exo
2023-09-01 14:09:53 +02:00
parent f69e309b0b
commit cc65ee473e
4 changed files with 9 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import asyncio
import logging
from pytest import LogCaptureFixture
from pytest import LogCaptureFixture, mark
from telethon._impl.mtproto.transport.full import Full
from telethon._impl.mtsender.sender import connect
from telethon._impl.tl import LAYER, abcs, functions, types
@@ -13,6 +13,7 @@ TELEGRAM_DEFAULT_TEST_DC = TELEGRAM_TEST_DC_2
TEST_TIMEOUT = 10000
@mark.net
async def test_invoke_encrypted_method(caplog: LogCaptureFixture) -> None:
caplog.set_level(logging.DEBUG)