(bot, chat_id)
| 51 | # Override `video` fixture to provide start_timestamp |
| 52 | @pytest.fixture(scope="module") |
| 53 | async def video(bot, chat_id): |
| 54 | # The `video` object returned here does not have the `qualities` attribute. |
| 55 | # Tests using actual VideoQuality objects from real Telegram responses |
| 56 | # are implemented separately in `test_videoquality`. |
| 57 | with data_file("telegram.mp4").open("rb") as f: |
| 58 | return ( |
| 59 | await bot.send_video( |
| 60 | chat_id, video=f, start_timestamp=VideoTestBase.start_timestamp, read_timeout=50 |
| 61 | ) |
| 62 | ).video |
| 63 | |
| 64 | |
| 65 | class VideoTestBase: |
nothing calls this directly
no test coverage detected
searching dependent graphs…