aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-05-11 13:52:29 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-05-11 13:54:26 +0300
commit9b117389606bbe5c398c52bf7001c0324ba83183 (patch)
treef1bc94fef6b6ffa5c1587481d41306473e02a49b /test.py
parent32f28055bd0e6368f0b13c8d40e9fc11e18b8cef (diff)
downloadsupybot_github-9b117389606bbe5c398c52bf7001c0324ba83183.tar.gz
supybot_github-9b117389606bbe5c398c52bf7001c0324ba83183.tar.bz2
supybot_github-9b117389606bbe5c398c52bf7001c0324ba83183.zip
Handle travis hook messages
Diffstat (limited to 'test.py')
-rw-r--r--test.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.py b/test.py
index e97ed91..55a9612 100644
--- a/test.py
+++ b/test.py
@@ -48,4 +48,19 @@ class GithubTestCase(ExpectationPluginTestCase):
it().should.contain('https://github.com/kongr45gpen/supybot-github/wiki/Home')
)
+ def testTravisNotification(self):
+ self.sendRequest('travis-notification')
+
+ self.describe('first message',
+ it().should.contain('minimal'),
+ it().should.contain('passed'),
+ it().should.contain('62aae'),
+ it().should.contain('Sven Fuchs'),
+ it().should.contain('this is a long commit message'),
+ it().should_not.contain('this is a long commit message, because we must learn how to lead ever-present lives in the face of turbulence. It is a sign of things to come. The vector of aspiration is now happening'),
+ it().should.contain('https://travis-ci.org/svenfuchs/minimal/builds/1')
+ )
+
+ self.assertError('get second message')
+
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:

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