(mock_github)
| 11 | |
| 12 | @responses.activate |
| 13 | def 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( |
nothing calls this directly
no test coverage detected