mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
💩 First iteration
This commit is contained in:
parent
0bd7fc2c7e
commit
fac69e52b7
25 changed files with 427 additions and 273 deletions
|
|
@ -6,7 +6,6 @@ import pytest
|
|||
from aiogram.api.client.session.base import BaseSession, T
|
||||
from aiogram.api.client.telegram import PRODUCTION, TelegramAPIServer
|
||||
from aiogram.api.methods import GetMe, Response, TelegramMethod
|
||||
from aiogram.utils.mixins import DataMixin
|
||||
|
||||
try:
|
||||
from asynctest import CoroutineMock, patch
|
||||
|
|
@ -31,7 +30,7 @@ class CustomSession(BaseSession):
|
|||
yield b"\f" * 10
|
||||
|
||||
|
||||
class TestBaseSession(DataMixin):
|
||||
class TestBaseSession():
|
||||
def test_init_api(self):
|
||||
session = CustomSession()
|
||||
assert session.api == PRODUCTION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue