aiogram/tests/test_api/test_client/test_session
Alex Root Junior a7b92bb050
PoC: Bot instance inside method shortcuts using pydantic Validation Context (#1210)
* PoC: Mount objects to the Bot instance, bind shortcuts to configured instance

* Fixe docstring of the bind method

* Pass Bot instance explicitly to the URLInputFile

* Added tests

* Added changelog

* Refactor aiogram client and update tests

Refactored base.py to improve code readability by separating response_type operation from model_validate(). Also, adjusted the parameters in URLInputFile() within test_input_file.py for better test coverage. Updated input_file.py to streamline read method and avoid unnecessary instantiation of Bot class. Lastly, adjusted typing in methods/base.py to enhance code clarity.

* Update changelog
2023-07-11 23:17:26 +03:00
..
test_middlewares Remove warnings about pytest asyncio mode 2022-12-30 16:10:06 +02:00
__init__.py Update tests and small refactoring 2019-11-16 22:32:26 +02:00
test_aiohttp_session.py Reworked request builder (#1142) 2023-03-11 20:46:36 +02:00
test_base_session.py PoC: Bot instance inside method shortcuts using pydantic Validation Context (#1210) 2023-07-11 23:17:26 +03:00