Test the github utility get_issue_comments_issue method.
(self)
| 209 | |
| 210 | @responses.activate |
| 211 | def test_get_issue_comments_issue(self): |
| 212 | """Test the github utility get_issue_comments_issue method.""" |
| 213 | params = {'sort': 'created', 'direction': 'desc', 'per_page': 100, } |
| 214 | params = urlencode(params, quote_via=quote_plus) |
| 215 | owner = 'gitcoinco' |
| 216 | repo = 'web' |
| 217 | issue = 1 |
| 218 | url = f'https://api.github.com/repos/{owner}/{repo}/issues/{issue}/comments' |
| 219 | url = url + '?' + params |
| 220 | responses.add(responses.GET, url, headers=HEADERS, json={}, status=200) |
| 221 | get_issue_comments(owner, repo, issue) |
| 222 | |
| 223 | assert responses.calls[0].request.url == url |
| 224 | |
| 225 | @responses.activate |
| 226 | def test_get_issue_timeline_events(self): |
nothing calls this directly
no test coverage detected