Rename Testing Base Classes by Bibo-Joshi · Pull Request #4453 · python-telegram-bot/python-telegram-bot

(venv311) ~\PycharmProjects\python-telegram-bot git:[rename-test-classes]
pytest -v -k NoMatchTest
======================================================================= test session starts =======================================================================
platform win32 -- Python 3.11.9, pytest-8.2.2, pluggy-1.5.0 -- C:\Users\hinri\PycharmProjects\python-telegram-bot\venv311\Scripts\python.exe
cachedir: .pytest_cache
rootdir: C:\Users\hinri\PycharmProjects\python-telegram-bot
configfile: pyproject.toml
testpaths: tests
plugins: anyio-4.4.0, flaky-3.8.1, asyncio-0.21.2, socket-0.7.0, xdist-3.6.1, web3-6.18.0
asyncio: mode=Mode.AUTO
collected 6200 items / 6200 deselected / 0 selected                                                                                                                

==================================================================== 6200 deselected in 17.72s ====================================================================
(venv311) ~\PycharmProjects\python-telegram-bot git:[rename-test-classes]
pytest -v -k NoMatchTest
======================================================================= test session starts =======================================================================
platform win32 -- Python 3.11.9, pytest-8.2.2, pluggy-1.5.0 -- C:\Users\hinri\PycharmProjects\python-telegram-bot\venv311\Scripts\python.exe
cachedir: .pytest_cache
rootdir: C:\Users\hinri\PycharmProjects\python-telegram-bot
configfile: pyproject.toml
testpaths: tests
plugins: anyio-4.4.0, flaky-3.8.1, asyncio-0.21.2, socket-0.7.0, xdist-3.6.1, web3-6.18.0
asyncio: mode=Mode.AUTO
collected 6200 items / 6200 deselected / 0 selected                                                                                                                

==================================================================== 6200 deselected in 12.71s ====================================================================

Note that the number of collected items did not change. What did change is the elapsed time, however I'm not sure if this is really reproducable. In any case, it doesn't hurt to rename these classes and if on average it does speed up the collection that's a good thing :)