From 9b117389606bbe5c398c52bf7001c0324ba83183 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Sun, 11 May 2014 13:52:29 +0300 Subject: Handle travis hook messages --- test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test.py') 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: -- cgit v1.2.3