aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2016-03-17 20:40:21 +0200
committerkongr45gpen <electrovesta@gmail.com>2016-03-17 20:40:21 +0200
commit4c7f3a6e15562721e64e9fdad294aa156ab561f4 (patch)
tree25566b40cb0ba75e614b452a27cce35486611dd5 /test.py
parent1d3ba9f629c8d124b96f7c9e42374bcb6d5e7f2c (diff)
downloadsupybot_github-4c7f3a6e15562721e64e9fdad294aa156ab561f4.tar.gz
supybot_github-4c7f3a6e15562721e64e9fdad294aa156ab561f4.tar.bz2
supybot_github-4c7f3a6e15562721e64e9fdad294aa156ab561f4.zip
Add support for github ping events
Diffstat (limited to 'test.py')
-rw-r--r--test.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test.py b/test.py
index 7a103ea..c0c6d98 100644
--- a/test.py
+++ b/test.py
@@ -128,4 +128,25 @@ class GithubTestCase(ExpectationPluginTestCase):
it().should.contain('https://github.com/baxterthehacker/public-repo/branches')
)
+ def testPing(self):
+ self.conf('allowArbitraryMessages', False)
+ self.sendRequest('ping')
+
+ self.describe('first message',
+ it().should.contain('Mind your words, they are important.'),
+ it().should.contain('test'),
+ it().should.contain('zen')
+ )
+
+ self.conf('allowArbitraryMessages', True)
+ self.sendRequest('ping')
+
+ self.describe('first message',
+ it().should.contain('Mind your words, they are important.'),
+ it().should.contain('test'),
+ it().should_not.contain('zen')
+ )
+
+
+
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:

© 2014-2024 Faster IT GmbH | imprint | privacy policy