git integrations: Change the limit of shown commits from 10 to 20.

This commit is contained in:
wizsid11
2017-03-10 01:55:21 +05:30
committed by Tim Abbott
parent cdb07c7005
commit f066e3e8d6
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ class GithubWebhookTest(WebhookTestCase):
def test_push_50_commits(self):
# type: () -> None
commit_info = "* [0d1a26e](https://github.com/baxterthehacker/public-repo/commit/0d1a26e67d8f5eaf1f6ba5c57fc3c7d91ac0fd1c): Update README.md\n"
expected_message = u"baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) to branch changes\n\n{}[and 40 more commit(s)]".format(
expected_message = u"baxterthehacker [pushed](https://github.com/baxterthehacker/public-repo/compare/9049f1265b7d...0d1a26e67d8f) to branch changes\n\n{}[and 30 more commit(s)]".format(
commit_info * COMMITS_LIMIT
)
self.send_and_test_stream_message('push_50_commits', self.EXPECTED_SUBJECT_BRANCH_EVENTS, expected_message, HTTP_X_GITHUB_EVENT='push')