MCPcopy
hub / github.com/gitcoinco/web / test_get_issue_comments

Method test_get_issue_comments

app/git/tests/test_utils.py:198–208  ·  view source on GitHub ↗

Test the github utility get_issue_comments method.

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

get_issue_commentsFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected