Skip to content

Create unittests for python-telegram-bot

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
LGPL-3.0
LICENSE.lesser
Notifications You must be signed in to change notification settings

GauthamramRavichandran/ptbtest

 
 

Repository files navigation

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.

About

Create unittests for python-telegram-bot

Topics

Resources

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
LGPL-3.0
LICENSE.lesser

Stars

Watchers

Forks

Languages

  • Python 100.0%