From 7f46f55d67c50f50dc51a00d2487250c4c1e5e94 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Wed, 4 Jan 2017 00:27:19 +0200 Subject: Note when a push is forced --- test.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test.py') diff --git a/test.py b/test.py index e52e099..f711595 100644 --- a/test.py +++ b/test.py @@ -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') -- cgit v1.2.3