Test the github utility get_user method with a subpath.
(self)
| 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): |