Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ filterwarnings = [
"ignore:.*The default for the setting.*:FutureWarning",
"ignore:.*:PendingDeprecationWarning",
]
addopts = "--import-mode=importlib"

[tool.coverage.run]
omit = ["*/_docs.py"]
2 changes: 1 addition & 1 deletion tests/test_renderers/test_fixtures_docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
from typing import Any

import pytest
from conftest import normalize_doctree_xml
from docutils import __version_info__ as docutils_version
from docutils.core import Publisher, publish_doctree
from pytest_param_files import ParamTestData

from myst_parser.parsers.docutils_ import Parser
from tests.conftest import normalize_doctree_xml

FIXTURE_PATH = Path(__file__).parent.joinpath("fixtures")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_renderers/test_include_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from pathlib import Path

import pytest
from conftest import normalize_doctree_xml
from docutils.core import publish_doctree

from myst_parser.parsers.docutils_ import Parser
from tests.conftest import normalize_doctree_xml

FIXTURE_PATH = Path(__file__).parent.joinpath("fixtures")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_renderers/test_myst_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from pathlib import Path

import pytest
from conftest import normalize_doctree_xml
from docutils import __version_info__ as docutils_version
from docutils.core import Publisher, publish_string
from pytest_param_files import ParamTestData

from myst_parser.parsers.docutils_ import Parser
from tests.conftest import normalize_doctree_xml

FIXTURE_PATH = Path(__file__).parent.joinpath("fixtures")
INV_PATH = Path(__file__).parent.parent.absolute() / "static" / "objects_v2.inv"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_renderers/test_myst_refs.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import sys

import pytest
from conftest import normalize_doctree_xml
from sphinx.util.console import strip_colors
from sphinx_pytest.plugin import CreateDoctree

from tests.conftest import normalize_doctree_xml


@pytest.mark.parametrize(
"test_name,text,should_warn",
Expand Down