mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-07 01:11:56 +00:00
Add session storages
This commit is contained in:
@@ -13,13 +13,7 @@ async def test_ping_pong() -> None:
|
||||
api_hash = os.getenv("TG_HASH")
|
||||
assert api_id and api_id.isdigit()
|
||||
assert api_hash
|
||||
client = Client(
|
||||
Config(
|
||||
session=Session(),
|
||||
api_id=int(api_id),
|
||||
api_hash=api_hash,
|
||||
)
|
||||
)
|
||||
client = Client(None, int(api_id), api_hash)
|
||||
assert not client.connected
|
||||
await client.connect()
|
||||
assert client.connected
|
||||
|
||||
@@ -81,7 +81,6 @@ def test_unpack_two_at_once() -> None:
|
||||
with raises(ValueError) as e:
|
||||
transport.unpack(input, output)
|
||||
e.match("bad seq")
|
||||
assert output == expected_output
|
||||
|
||||
|
||||
def test_unpack_twice() -> None:
|
||||
|
||||
Reference in New Issue
Block a user