Test the github utility get_issue_comments method.
(self)
| 196 | |
| 197 | @responses.activate |
| 198 | def test_get_issue_comments(self): |
| 199 | """Test the github utility get_issue_comments method.""" |
| 200 | params = {'sort': 'created', 'direction': 'desc', 'per_page': 100, } |
| 201 | params = urlencode(params, quote_via=quote_plus) |
| 202 | owner = 'gitcoinco' |
| 203 | repo = 'web' |
| 204 | url = f'https://api.github.com/repos/{owner}/{repo}/issues/comments?' + params |
| 205 | responses.add(responses.GET, url, headers=HEADERS, json={}, status=200) |
| 206 | get_issue_comments(owner, repo) |
| 207 | |
| 208 | assert responses.calls[0].request.url == url |
| 209 | |
| 210 | @responses.activate |
| 211 | def test_get_issue_comments_issue(self): |
nothing calls this directly
no test coverage detected