MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / test_github_api

Function test_github_api

tests/test_github.py:13–21  ·  view source on GitHub ↗
(mock_github)

Source from the content-addressed store, hash-verified

11
12@responses.activate
13def test_github_api(mock_github):
14 mock_github(responses)
15 url = "https://github.com/psf/requests"
16 g = github.GitHub.from_url(url)
17
18 assert g.owner == "psf"
19 assert g.name == "requests"
20 assert g.repo["html_url"] == url
21 assert len(g.contributors) > 0
22
23
24@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

mock_githubFunction · 0.85
from_urlMethod · 0.80

Tested by

no test coverage detected