diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-05-11 13:52:29 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-05-11 13:54:26 +0300 |
commit | 9b117389606bbe5c398c52bf7001c0324ba83183 (patch) | |
tree | f1bc94fef6b6ffa5c1587481d41306473e02a49b /test.py | |
parent | 32f28055bd0e6368f0b13c8d40e9fc11e18b8cef (diff) | |
download | supybot_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.py | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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: |