aiogram/tests
Alex Root Junior 4729978c60
Add context manager support for bot client (#1468)
* Add context manager support for bot client

The bot client now supports the context manager protocol, providing automatic resource management. This enhancement helps to automatically close the session when leaving the context, which cleans up resources better. The documentation and tests have been updated accordingly to illustrate this new feature. Moreover, an example of usage without a dispatcher has been provided to clarify its use in simple cases.

* Added changelog
2024-04-22 23:42:47 +03:00
..
data/locales Dev 3.x i18n & improvements (#696) 2021-09-22 00:52:38 +03:00
test_api Add context manager support for bot client (#1468) 2024-04-22 23:42:47 +03:00
test_dispatcher Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
test_filters Added full support of Bot API 7.1 (#1417) 2024-02-16 23:44:35 +02:00
test_flags Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_fsm Added full support of Bot API 7.2 (#1444) 2024-04-22 13:48:49 +03:00
test_handler Removed the use of the context instance (Bot.get_current) from all placements that were used previously. (#1230) 2023-07-28 22:23:32 +03:00
test_issues #1317 Fixed priority of events isolation (#1318) 2023-09-21 22:54:48 +03:00
test_utils Add missing Telegram WebApp API classes and fields (#1424) (#1425) 2024-02-26 02:13:32 +02:00
test_webhook Upgrade to py12 (#1354) 2023-11-18 21:24:19 +02:00
__init__.py Update tests and small refactoring 2019-11-16 22:32:26 +02:00
conftest.py Fixed ResourceWarnings in tests (#1366) 2023-11-16 02:08:36 +02:00
deprecated.py Upgrade architecture + 5.0 Bot API (#469) 2021-01-26 21:20:52 +02:00
docker-compose.yml Backport and improvements (#601) 2021-06-15 01:45:31 +03:00
mocked_bot.py "Add get_mounted_bot function and improve model comparison in tests" 2023-07-16 22:46:45 +03:00