diff options
author | kongr45gpen <electrovesta@gmail.com> | 2017-01-04 00:27:19 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2017-01-04 00:27:19 +0200 |
commit | 7f46f55d67c50f50dc51a00d2487250c4c1e5e94 (patch) | |
tree | 3247bdc33b5125b79433a1089dee2577b51c51ee /test.py | |
parent | fb353478e24e5e4341b86fec3a390906e5e8ce74 (diff) | |
download | supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.tar.gz supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.tar.bz2 supybot_github-7f46f55d67c50f50dc51a00d2487250c4c1e5e94.zip |
Note when a push is forced
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -55,6 +55,30 @@ class GithubTestCase(ExpectationPluginTestCase): it().should.contain('Trigger pages build') ) + def testForcePush(self): + self.sendRequest('push-forced') + + self.describe('first message', + it().should.contain('force pushed'), + it().should.contain('2 commits'), + it().should.contain('kongr45gpen'), + it().should.contain('pullr1'), + it().should.contain('test'), + it().should.contain('https://github.com/kongr45gpen/test/compare/3be0d004b9d9...12121ad459e0') + ) + + self.describe('second message', + it().should.contain('kongr45gpen'), + it().should.contain('726'), + it().should.contain('https://github.com/kongr45gpen/test/commit/726b044d600a19ce10eccf1014f7dd19b6efddf6') + ) + + self.describe('fourth message', + it().should.contain('Padiaten'), + it().should.contain('121'), + it().should.contain('https://github.com/kongr45gpen/test/commit/12121ad459e0ae12ec91928949aab27a84a0478f') + ) + def testNewWikiPage(self): self.sendRequest('wiki-new-page') |