Debian Codegraph @

tests/circular_dependencies_test.py

raw
1 import os
2
3 extra_plugin_dir = os.path.join(
4 os.path.dirname(os.path.realpath(__file__)), "circular_dependent_plugins"
5 )
6 pytest_plugins = ["errbot.backends.test"]
7
8
9 def test_if_all_loaded_circular_dependencies(testbot):
10 """https://github.com/errbotio/errbot/issues/1397"""
11 plug_names = testbot.bot.plugin_manager.get_all_active_plugin_names()
12 assert "PluginA" in plug_names
13 assert "PluginB" in plug_names
14 assert "PluginC" in plug_names