File: plugin_entrypoint_test.py

package info (click to toggle)
errbot 6.2.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,796 kB
  • sloc: python: 11,557; makefile: 164; sh: 97
file content (18 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from errbot.utils import entry_point_plugins


def test_entrypoint_paths():
    plugins = entry_point_plugins("console_scripts")

    match = False
    for plugin in plugins:
        if "errbot/errbot.cli" in plugin:
            match = True
    assert match


def test_entrypoint_paths_empty():
    groups = ["errbot.plugins", "errbot.backend_plugins"]
    for entry_point_group in groups:
        plugins = entry_point_plugins(entry_point_group)
        assert plugins == []