mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Mark tests requiring network access
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import random
|
||||
from pytest import mark
|
||||
|
||||
from telethon._impl.client.client.client import Client
|
||||
from telethon._impl.client.client.net import Config
|
||||
@@ -7,6 +8,8 @@ from telethon._impl.session.message_box.defs import Session
|
||||
from telethon._impl.tl.mtproto import functions, types
|
||||
|
||||
|
||||
@mark.api
|
||||
@mark.net
|
||||
async def test_ping_pong() -> None:
|
||||
api_id = os.getenv("TG_ID")
|
||||
api_hash = os.getenv("TG_HASH")
|
||||
|
Reference in New Issue
Block a user