aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2015-01-02 12:52:32 +0200
committerkongr45gpen <electrovesta@gmail.com>2015-01-02 12:52:43 +0200
commit225c1bc1664bb8b56b2ff72a42d70433282eeaaa (patch)
treeef7af24e49d50224578f2f4f27632b52603e5049 /test.py
parent8c86df341d04e289ea6b9e58d3af69027904d4db (diff)
downloadsupybot_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.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/test.py b/test.py
index 7997a2e..d015c3b 100644
--- a/test.py
+++ b/test.py
@@ -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:

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