mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +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``) |
||
---|---|---|
.. | ||
__init__.py | ||
basepersistence.py | ||
callbackcontext.py | ||
callbackqueryhandler.py | ||
choseninlineresulthandler.py | ||
commandhandler.py | ||
conversationhandler.py | ||
dictpersistence.py | ||
dispatcher.py | ||
filters.py | ||
handler.py | ||
inlinequeryhandler.py | ||
jobqueue.py | ||
messagehandler.py | ||
messagequeue.py | ||
picklepersistence.py | ||
precheckoutqueryhandler.py | ||
regexhandler.py | ||
shippingqueryhandler.py | ||
stringcommandhandler.py | ||
stringregexhandler.py | ||
typehandler.py | ||
updater.py |