| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 |
| 1 class MockWPTGitHub(object): | 6 class MockWPTGitHub(object): |
| 2 | 7 |
| 3 def __init__(self, pull_requests, unsuccessful_merge=False): | 8 def __init__(self, pull_requests, unsuccessful_merge=False): |
| 4 self.pull_requests = pull_requests | 9 self.pull_requests = pull_requests |
| 5 self.unsuccessful_merge = unsuccessful_merge | 10 self.unsuccessful_merge = unsuccessful_merge |
| 6 self.calls = [] | 11 self.calls = [] |
| 7 self.pull_requests_created = [] | 12 self.pull_requests_created = [] |
| 8 | 13 |
| 9 def in_flight_pull_requests(self): | 14 def in_flight_pull_requests(self): |
| 10 self.calls.append('in_flight_pull_requests') | 15 self.calls.append('in_flight_pull_requests') |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 assert remote_branch_name | 26 assert remote_branch_name |
| 22 assert desc_title | 27 assert desc_title |
| 23 assert body | 28 assert body |
| 24 | 29 |
| 25 self.pull_requests_created.append((remote_branch_name, desc_title, body)
) | 30 self.pull_requests_created.append((remote_branch_name, desc_title, body)
) |
| 26 | 31 |
| 27 return {} | 32 return {} |
| 28 | 33 |
| 29 def delete_remote_branch(self, _): | 34 def delete_remote_branch(self, _): |
| 30 self.calls.append('delete_remote_branch') | 35 self.calls.append('delete_remote_branch') |
| OLD | NEW |