Debian Codegraph @

tests/mention_test.py

raw
1 from os import path
2
3 extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "mention_plugin")
4
5
6 def test_foreign_mention(testbot):
7 assert "Somebody mentioned toto!" in testbot.exec_command(
8 "I am telling you something @toto"
9 )
10
11
12 def test_testbot_mention(testbot):
13 assert "Somebody mentioned me!" in testbot.exec_command(
14 "I am telling you something @Err"
15 )
16
17
18 def test_multiple_mentions(testbot):
19 assert "Somebody mentioned toto,titi!" in testbot.exec_command(
20 "I am telling you something @toto and @titi"
21 )