python-telegram-bot/telegram
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
..
ext tests: refactor `test_commandhandler.py` (#1408) 2019-10-12 16:11:09 +03:00
files Add instance methods to Animation and ChatPhoto (#1489) 2019-09-13 22:07:56 +03:00
games
inline All api 4.2 and 4.3 changes (#1418) 2019-08-23 22:20:41 +03:00
passport
payment
utils Implemented Tools for deep linking (#1049) 2019-09-13 22:09:05 +03:00
vendor Revert accidental change to the git revision of the urllib3 submodule (#1517) 2019-09-17 11:25:54 +03:00
__init__.py API 4.4 (#1464) 2019-09-06 22:41:43 +03:00
__main__.py
base.py
bot.py Fix Bot.to_dict to use proper first_name (#1525) 2019-10-11 22:37:28 +03:00
callbackquery.py
chat.py small fix for documentation to compile 2019-09-13 22:31:02 +03:00
chataction.py
chatmember.py API 4.4 (#1464) 2019-09-06 22:41:43 +03:00
chatpermissions.py API 4.4 (#1464) 2019-09-06 22:41:43 +03:00
choseninlineresult.py
constants.py
error.py
forcereply.py
keyboardbutton.py
loginurl.py Doc fixes (#1499) 2019-09-13 21:49:04 +03:00
message.py Doc fixes (#1499) 2019-09-13 21:49:04 +03:00
messageentity.py Make MessageEntity objects comparable (#1465) 2019-08-24 00:54:04 +03:00
parsemode.py
poll.py All api 4.2 and 4.3 changes (#1418) 2019-08-23 22:20:41 +03:00
replykeyboardmarkup.py
replykeyboardremove.py
replymarkup.py
update.py All api 4.2 and 4.3 changes (#1418) 2019-08-23 22:20:41 +03:00
user.py
userprofilephotos.py
version.py Bump version to v12.1.1 2019-09-17 11:30:52 +03:00
webhookinfo.py