Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.34 KB

readme.md

File metadata and controls

21 lines (16 loc) · 1.34 KB

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.