python-telegram-bot/telegram/ext
Paolo Lammens 3318239cf6 tests: refactor `test_commandhandler.py` (#1408)
- 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``)
2019-10-12 16:11:09 +03:00
..
__init__.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
basepersistence.py Documentation fixes (#1348) 2019-02-18 20:04:52 +01:00
callbackcontext.py raise attribute errors when someone tries to assign values to chat/us… (#1495) 2019-09-05 22:48:28 +02:00
callbackqueryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
choseninlineresulthandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
commandhandler.py Add missing message.text check in PrefixHandler check_update (#1375) 2019-04-05 12:59:50 +02:00
conversationhandler.py Nested ConversationHandlers (#1512) 2019-10-11 22:59:36 +03:00
dictpersistence.py Documentation fixes (#1348) 2019-02-18 20:04:52 +01:00
dispatcher.py Error handlers now handle all errors (#1483) 2019-08-27 09:09:02 +02:00
filters.py Making merged filters short-circuit (#1350) 2019-03-14 09:03:21 +01:00
handler.py tests: refactor `test_commandhandler.py` (#1408) 2019-10-12 16:11:09 +03:00
inlinequeryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
jobqueue.py Merge remote-tracking branch 'origin/V12' 2019-08-24 01:04:10 +03:00
messagehandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
messagequeue.py Mistake in MessageQueue.__call__'s docstring (#1249) 2018-10-08 15:36:59 +02:00
picklepersistence.py fix typo in PicklePersistence (#1488) 2019-08-29 19:09:38 +02:00
precheckoutqueryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
regexhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
shippingqueryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
stringcommandhandler.py Revert "Revert "Context based callbacks (#1100)"" 2018-09-21 08:57:01 +02:00
stringregexhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
typehandler.py Revert "Revert "Context based callbacks (#1100)"" 2018-09-21 08:57:01 +02:00
updater.py Merge remote-tracking branch 'origin/V12' 2019-08-24 01:04:10 +03:00