Test the github utility get_issue_timeline_events method.
(self)
| 224 | |
| 225 | @responses.activate |
| 226 | def test_get_issue_timeline_events(self): |
| 227 | """Test the github utility get_issue_timeline_events method.""" |
| 228 | params = {'sort': 'created', 'direction': 'desc', 'per_page': 100, 'page': 1} |
| 229 | params = urlencode(params, quote_via=quote_plus) |
| 230 | owner = 'gitcoinco' |
| 231 | repo = 'web' |
| 232 | issue = 1 |
| 233 | url = f'https://api.github.com/repos/{owner}/{repo}/issues/{issue}/timeline' |
| 234 | url = url + '?' + params |
| 235 | responses.add(responses.GET, url, headers=HEADERS, json={}, status=200) |
| 236 | get_issue_timeline_events(owner, repo, issue) |
| 237 | |
| 238 | assert responses.calls[0].request.url == url |
| 239 | |
| 240 | @responses.activate |
| 241 | def test_get_user(self): |
nothing calls this directly
no test coverage detected