mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
3318239cf6
- Improved usage of fixtures - Replaced fixtures for directly callable factories where multiple mock objects were needed in the same test function - Extracted fixtures where possible (in place of literals or global constants) - Moved some fixtures to ``conftest.py`` to be used by other modules - Made a common base class for both ``TestCommandHandler`` and ``TestPrefixHandler``, extracting common methods, patterns and signatures - The extracted patterns in test methods have been named with leading ``_test`` - Extracted other repeatedly used test utilities into functions (e.g. ``is_match``) and methods (e.g. ``make_default_handler``) |
||
---|---|---|
.. | ||
ext | ||
files | ||
games | ||
inline | ||
passport | ||
payment | ||
utils | ||
vendor | ||
__init__.py | ||
__main__.py | ||
base.py | ||
bot.py | ||
callbackquery.py | ||
chat.py | ||
chataction.py | ||
chatmember.py | ||
chatpermissions.py | ||
choseninlineresult.py | ||
constants.py | ||
error.py | ||
forcereply.py | ||
keyboardbutton.py | ||
loginurl.py | ||
message.py | ||
messageentity.py | ||
parsemode.py | ||
poll.py | ||
replykeyboardmarkup.py | ||
replykeyboardremove.py | ||
replymarkup.py | ||
update.py | ||
user.py | ||
userprofilephotos.py | ||
version.py | ||
webhookinfo.py |