Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for bot_plugin.py #27

Open
ifosch opened this issue May 24, 2018 · 0 comments
Open

Add tests for bot_plugin.py #27

ifosch opened this issue May 24, 2018 · 0 comments

Comments

@ifosch
Copy link
Member

ifosch commented May 24, 2018

Best approach to test this would probably be creating a BotPlugin subclass with CommandHandlers and ensure these:

  • Are added when using the add_handlers method, using a fake dispatcher
  • Get listed using commands
  • Are removed when using the remove_handlers method, using a fake dispatcher

Features to test:

  • Add handlers
  • Remove handlers
  • List commands

Fakes/spies to be implemented:

  • Dispatcher
@ifosch ifosch changed the title Add test for bot_plugin.py Add tests for bot_plugin.py May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant