Add repository and installation id to events in tests

To make test cases more realistic add the repository and installation
fields to the event as github sends them in real life as well. This
modification validates https://review.opendev.org/742211.

Change-Id: Ibcdf696c63a3f162aa835bce82f9a90d9dedd5ad
This commit is contained in:
Tobias Henkel 2020-07-21 17:12:03 +02:00
parent 8f20771e99
commit e9b098e392
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 6 additions and 0 deletions

View File

@ -2101,6 +2101,12 @@ class FakeGithubPullRequest(object):
'sender': {
'login': 'ghuser'
},
'repository': {
'full_name': self.project,
},
'installation': {
'id': 123,
},
'labels': [{'name': l} for l in self.labels]
}
return (name, data)