Test suite maintainence and new ideas

Author: harshil21Created Jun 26, 2024Updated Aug 20, 2026
Labels⚙️ tests

Our test suite has once again degraded in performance and flakiness has been reintroduced. We can experiment / make our test suite better in different ways, some of my current ideas are listed roughly below:

Follow https://github.com/zupo/awesome-pytest-speedup, not all items but some are worth looking at:

-> Check if using pytest-asyncio-cooperative is worth it - Nope it is not.

Source: python-telegram-bot/python-telegram-bot