aiogram/tests
Alex Root Junior 49d0784e33
Added full support of the Bot API 9.4 (#1761)
* Bump API schema to version 9.4, add new object types, methods, and properties.

* Add tests for `ChatOwnerChanged` and `ChatOwnerLeft` message types

* Add tests for `GetUserProfileAudios`, `RemoveMyProfilePhoto`, and `SetMyProfilePhoto` methods

* Bump version

* Update Makefile variables and refactor `test_get_user_profile_audios.py`

* Document new features and updates from Bot API 9.4 in changelog

* Add `ButtonStyle` enum to represent button styles in the Telegram API

* Fix review issues from PR #1761

- Remove stray '-' artifact from GameHighScore docstring and butcher schema
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Fix ButtonStyle enum source URL (#chat -> #inlinekeyboardbutton)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Revert "Fix review issues from PR #1761"

This reverts commit 2184e98988.

* Update source links for `ButtonStyle` documentation to reflect accurate API references

* Fix review issues from PR #1761 (#1762)

* Fix review issues from PR #1761

- Remove stray '-' artifact from GameHighScore docstring
- Fix Makefile reformat target scope inconsistency (ruff check --fix)
- Add User.get_profile_audios() shortcut method (parallel to get_profile_photos)
- Test ChatOwnerLeft with new_owner=None (edge case)
- Add VideoQuality type and Video.qualities nesting tests
- Add User.get_profile_audios() test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Address review comments: use fixture and variables in tests, add changelog

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Address review follow-ups for PR #1762

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Reformat code

* Shut up, ruff

---------

Co-authored-by: latand <latand666@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com>
2026-02-10 23:43:52 +02:00
..
data/locales Dev 3.x i18n & improvements (#696) 2021-09-22 00:52:38 +03:00
test_api Added full support of the Bot API 9.4 (#1761) 2026-02-10 23:43:52 +02:00
test_dispatcher Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_filters Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_flags Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_fsm Fix #1743: scene handling for channel updates (#1763) 2026-02-10 23:08:44 +02: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 Fix #1743: scene handling for channel updates (#1763) 2026-02-10 23:08:44 +02:00
test_utils Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_webhook Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
__init__.py Update tests and small refactoring 2019-11-16 22:32:26 +02:00
conftest.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
deprecated.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
docker-compose.yml EOL of Py3.9 (#1726) 2025-10-06 19:19:23 +03:00
mocked_bot.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00