File: plugin_config_fail_test.py

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

extra_plugin_dir = path.join(
    path.dirname(path.realpath(__file__)), "fail_config_plugin"
)


def test_failed_config(testbot):
    assert (
        "Incorrect plugin configuration: Message explaining why it failed."
        in testbot.exec_command("!plugin config Failp {}")
    )