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

Method test_get_issue_timeline_events

app/git/tests/test_utils.py:226–238  ·  view source on GitHub ↗

Test the github utility get_issue_timeline_events method.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addMethod · 0.80

Tested by

no test coverage detected