File: test_roles.py

package info (click to toggle)
python-sphinxcontrib-django 2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 608 kB
  • sloc: python: 1,448; makefile: 20; sh: 6
file content (15 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest


@pytest.mark.sphinx(
    "html",
    testroot="docstrings",
    confoverrides={
        "extensions": ["conflicting_sphinx_extension", "sphinxcontrib_django"]
    },
)
def test_setup_with_conflicting_extension(app, caplog):
    setup_records = caplog.get_records("setup")
    assert len(setup_records) == 1
    assert setup_records[0].name == "sphinxcontrib_django.roles"
    assert "Unable to register cross-reference type: " in setup_records[0].msg