8000 tests: Modernize test fixtures · Viicos/python@a9078a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9078a0

Browse files
committed
tests: Modernize test fixtures
1 parent 5035e92 commit a9078a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
import pytest
99
from markdown.core import Markdown
10-
from mkdocs import config
11-
from mkdocs.config.defaults import get_schema
10+
from mkdocs.config.defaults import MkDocsConfig
1211

1312
if TYPE_CHECKING:
1413
from pathlib import Path
1514

15+
from mkdocs import config
1616
from mkdocstrings.plugin import MkdocstringsPlugin
1717

1818
from mkdocstrings_handlers.python.handler import PythonHandler
@@ -29,12 +29,11 @@ def fixture_mkdocs_conf(request: pytest.FixtureRequest, tmp_path: Path) -> Itera
2929
Yields:
3030
MkDocs config.
3131
"""
32-
conf = config.Config(schema=get_schema()) # type: ignore[call-arg]
32+
conf = MkDocsConfig()
3333
while hasattr(request, "_parent_request") and hasattr(request._parent_request, "_parent_request"):
3434
request = request._parent_request
3535

3636
conf_dict = {
37-
"config_file_path": "mkdocs.yml",
3837
"site_name": "foo",
3938
"site_url": "https://example.org/",
4039
"site_dir": str(tmp_path),

0 commit comments

Comments
 (0)
0