/ptbtest

Create unittests for python-telegram-bot

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Documentation Status PyPI PyPI PyPI

ptb unittest

a testsuite for Python telegram bot

Note: This is a derivative work of the original ptbtest

Installation: pip install ptb-unittest

This library is for people wanting to write unittests for their python-telegram-bot driven bots. The following things make this library attractive to create unittests

  • Mockbot - A fake bot that does not contact telegram servers
  • Works with the Updater from telegram.ext
  • Generator classes to easily create Users, Chats and Updates objects.

Read the documentation for further reading and check out the examples.

Disclaimer

Unstable package. Most files are not up-to-date with latest python-telegram-bot. Feel free to contribute.

Use at your own risk.