aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-12-30 13:24:22 +0200
committerkongr45gpen <electrovesta@gmail.com>2014-12-30 13:24:22 +0200
commit0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c (patch)
tree0a2197e77dbcd47e513df05ffebc66d2abf6e35f /test.py
parent3143ab518d7fbf124bf361658981da50b546191d (diff)
downloadsupybot_github-0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c.tar.gz
supybot_github-0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c.tar.bz2
supybot_github-0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c.zip
Add support for pushes on v3 of the Github API
Diffstat (limited to 'test.py')
-rw-r--r--test.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test.py b/test.py
index 987c5d4..7997a2e 100644
--- a/test.py
+++ b/test.py
@@ -35,6 +35,26 @@ class GithubTestCase(ExpectationPluginTestCase):
# By default, merged commits should not be shown
self.assertError('get 5th message')
+ def testV3Push(self):
+ self.sendRequest('push-v3')
+
+ self.describe('first message',
+ it().should.contain('gh-pages'),
+ it().should.contain('baxterthehacker'),
+ it().should.contain('pushed 1 commit'),
+ it().should.contain('https://github.com/baxterthehacker/public-repo/compare/4d2ab4e76d0d...7700ca29dd05')
+ )
+
+ self.describe('second message',
+ it().should.contain('7700ca'),
+ it().should.contain('kdaigle'),
+ it().should.contain('https://github.com/baxterthehacker/public-repo/commit/7700ca29dd050d9adacc0803f866d9b539513535')
+ )
+
+ self.describe('third message',
+ it().should.contain('Trigger pages build')
+ )
+
def testNewWikiPage(self):
self.sendRequest('wiki-new-page')

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