Debian Codegraph @

tests/multi_plugin_test.py

raw
1 from os import path
2
3 extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "multi_plugin")
4
5 # This tests the decorellation between plugin class names and real names
6 # by making 2 instances of the same plugin collide on purpose.
7
8
9 def test_first(testbot):
10 r = testbot.exec_command("!myname")
11 assert "Multi1" == r or "Multi2" == r
12
13
14 def test_second(testbot):
15 assert "Multi2" == testbot.exec_command(
16 "!multi2-myname"
17 ) or "Multi1" == testbot.exec_command("!multi1-myname")