File: circular_dependencies_test.py

package info (click to toggle)
errbot 6.2.0%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,856 kB
  • sloc: python: 11,572; makefile: 163; sh: 97
file content (14 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os

extra_plugin_dir = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), "circular_dependent_plugins"
)
pytest_plugins = ["errbot.backends.test"]


def test_if_all_loaded_circular_dependencies(testbot):
    """https://github.com/errbotio/errbot/issues/1397"""
    plug_names = testbot.bot.plugin_manager.get_all_active_plugin_names()
    assert "PluginA" in plug_names
    assert "PluginB" in plug_names
    assert "PluginC" in plug_names