aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2016-07-17 22:19:27 +0300
committerkongr45gpen <electrovesta@gmail.com>2016-07-17 22:20:19 +0300
commit8dd785e693406693ca2a1b92efecd1d9e53e17d9 (patch)
tree8ab21b180f487ffbcbcb9b85db8119f47f432237 /test.py
parentdd39db4330b1dc762c3e0f68f43cfb7b65651aef (diff)
downloadsupybot_github-8dd785e693406693ca2a1b92efecd1d9e53e17d9.tar.gz
supybot_github-8dd785e693406693ca2a1b92efecd1d9e53e17d9.tar.bz2
supybot_github-8dd785e693406693ca2a1b92efecd1d9e53e17d9.zip
Add support for Github releases
Diffstat (limited to 'test.py')
-rw-r--r--test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test.py b/test.py
index c0c6d98..413c5c4 100644
--- a/test.py
+++ b/test.py
@@ -128,6 +128,19 @@ class GithubTestCase(ExpectationPluginTestCase):
it().should.contain('https://github.com/baxterthehacker/public-repo/branches')
)
+ def testRelease(self):
+ self.sendRequest('release')
+
+ self.describe('first message',
+ it().should.contain('myproject'),
+ it().should.contain('kongr45gpen'),
+ it().should.contain('prerelease'),
+ it().should_not.contain('draft'),
+ it().should.contain('Useless Release'),
+ it().should.contain('v2.6.5'),
+ it().should.contain('https://github.com/kongr45gpen/myproject/releases/tag/v2.6.5')
+ )
+
def testPing(self):
self.conf('allowArbitraryMessages', False)
self.sendRequest('ping')

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