diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-12-30 13:24:22 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-12-30 13:24:22 +0200 |
commit | 0f3ebd87e657c56c2fd58bece4f0bf679cf8bd0c (patch) | |
tree | 0a2197e77dbcd47e513df05ffebc66d2abf6e35f /test.py | |
parent | 3143ab518d7fbf124bf361658981da50b546191d (diff) | |
download | supybot_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.py | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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') |