diff options
author | kongr45gpen <electrovesta@gmail.com> | 2015-01-02 12:52:32 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2015-01-02 12:52:43 +0200 |
commit | 225c1bc1664bb8b56b2ff72a42d70433282eeaaa (patch) | |
tree | ef7af24e49d50224578f2f4f27632b52603e5049 /test.py | |
parent | 8c86df341d04e289ea6b9e58d3af69027904d4db (diff) | |
download | supybot_github-225c1bc1664bb8b56b2ff72a42d70433282eeaaa.tar.gz supybot_github-225c1bc1664bb8b56b2ff72a42d70433282eeaaa.tar.bz2 supybot_github-225c1bc1664bb8b56b2ff72a42d70433282eeaaa.zip |
Add support for `create` and `delete` Github API events
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -84,4 +84,48 @@ class GithubTestCase(ExpectationPluginTestCase): self.assertError('get second message') + def testCreateTag(self): + self.sendRequest('create-tag') + + self.describe('first message', + it().should.contain('public-repo'), + it().should.contain('baxterthehacker'), + it().should.contain('tagged'), + it().should.contain('0.0.1'), + it().should.contain('https://github.com/baxterthehacker/public-repo/releases/tag/0.0.1') + ) + + def testDeleteTag(self): + self.sendRequest('delete-tag') + + self.describe('first message', + it().should.contain('public-repo'), + it().should.contain('baxterthehacker'), + it().should.contain('deleted tag'), + it().should.contain('simple-tag'), + it().should.contain('https://github.com/baxterthehacker/public-repo/tags') + ) + + def testCreateBranch(self): + self.sendRequest('create-branch') + + self.describe('first message', + it().should.contain('public-repo'), + it().should.contain('baxterthehacker'), + it().should.contain('created branch'), + it().should.contain('develop'), + it().should.contain('https://github.com/baxterthehacker/public-repo/tree/develop') + ) + + def testDeleteBranch(self): + self.sendRequest('delete-branch') + + self.describe('first message', + it().should.contain('public-repo'), + it().should.contain('baxterthehacker'), + it().should.contain('deleted branch'), + it().should.contain('blue-lights'), + it().should.contain('https://github.com/baxterthehacker/public-repo/branches') + ) + # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: |