tests.sphinx.test_sphinx_linkcheck moduleΒΆ
Tests for the github.com authentication of the linkcheck builder.
- tests.sphinx.test_sphinx_linkcheck.ORCHARD_AUTH = ('https://orchard\\.example\\.com/', ('gardener', 'spade'))ΒΆ
A
linkcheck_authentry a project declares in its ownconf.py.
- tests.sphinx.test_sphinx_linkcheck.linkcheck_auth(tmp_path, entries)[source]ΒΆ
Start a
linkcheckbuild of a project declaringentries.
- tests.sphinx.test_sphinx_linkcheck.test_auth_entry_follows_the_project_ones(tmp_path, monkeypatch)[source]ΒΆ
With a token, the github.com entry comes after the entries of
conf.py.Sphinx signs a request with the first entry matching its URL, so a project entry keeps precedence.
- Return type:
- tests.sphinx.test_sphinx_linkcheck.test_no_auth_entry_without_a_token(tmp_path, monkeypatch, token)[source]ΒΆ
Without a token,
linkcheck_authholds the entries ofconf.pyalone.- Return type: