From 8dd785e693406693ca2a1b92efecd1d9e53e17d9 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Sun, 17 Jul 2016 22:19:27 +0300 Subject: Add support for Github releases --- test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test.py') 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') -- cgit v1.2.3