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

Method test_get_issue_comments_issue

app/git/tests/test_utils.py:211–223  ·  view source on GitHub ↗

Test the github utility get_issue_comments_issue method.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

get_issue_commentsFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected