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

Method test_get_user_subpath

app/git/tests/test_utils.py:250–256  ·  view source on GitHub ↗

Test the github utility get_user method with a subpath.

(self)

Source from the content-addressed store, hash-verified

248
249 @responses.activate
250 def test_get_user_subpath(self):
251 """Test the github utility get_user method with a subpath."""
252 url = 'https://api.github.com/users/gitcoin/test'
253 responses.add(responses.GET, url, headers=HEADERS, json={}, status=200)
254 get_user('@gitcoin', '/test')
255
256 assert responses.calls[0].request.url == url
257
258 @responses.activate
259 def test_post_issue_comment(self):

Callers

nothing calls this directly

Calls 2

get_userFunction · 0.90
addMethod · 0.80

Tested by

no test coverage detected