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 to bot_plugins.py #28

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

Add tests to bot_plugins.py #28

ifosch opened this issue May 24, 2018 · 0 comments

Comments

@ifosch
Copy link
Member

ifosch commented May 24, 2018

Features to test:

  • find_bot(module)
  • get_list_from_envitonment(env_var_name)
  • iter_namespaces()
  • import_plugin_modules()
  • BotPlugins.__disabled_plugins(disabled_plugins)
  • BotPlugins.command_descs()
  • BotPliugins.feature_descs()
  • BotPlugins.disable(plugin_name)
  • BotPlugins.load_plugin(module_name)
  • BotPlugins.enable(plugin_name)
  • BotPlugins.load_plugins()
  • BotPlugins used as an iterator

Mocks needed:

  • os.getenv
  • os.path.join
  • os.path.dirname

Spies to be implemented:

  • importlib.import_module
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