Skip to content

Add tests for bot_plugin.py #27

Description

@ifosch

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions