File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,3 @@ addopts =
14
14
--cov-config config/coverage.ini
15
15
testpaths =
16
16
tests
17
-
18
- # action:message_regex:warning_class:module_regex:line
19
- filterwarnings =
20
- error
21
- # TODO: remove once pytest-xdist 4 is released
22
- ignore:.*rsyncdir:DeprecationWarning:xdist
Original file line number Diff line number Diff line change 4
4
5
5
import pytest
6
6
from markdown .core import Markdown
7
- from mkdocs import config
8
-
9
- try :
10
- from mkdocs .config .defaults import get_schema
11
- except ImportError :
12
-
13
- def get_schema (): # noqa: WPS440
14
- """Fallback for old versions of MkDocs.""" # noqa: DAR201
15
- return config .DEFAULT_SCHEMA
7
+ from mkdocs .config .defaults import MkDocsConfig
16
8
17
9
18
10
@pytest .fixture (name = "mkdocs_conf" )
@@ -26,7 +18,7 @@ def fixture_mkdocs_conf(request, tmp_path):
26
18
Yields:
27
19
MkDocs configuration object.
28
20
"""
29
- conf = config . Config ( schema = get_schema () )
21
+ conf = MkDocsConfig ( )
30
22
while hasattr (request , "_parent_request" ) and hasattr (request ._parent_request , "_parent_request" ): # noqa: WPS437
31
23
request = request ._parent_request # noqa: WPS437
32
24
Original file line number Diff line number Diff line change 20
20
"mkdocstrings.extension" ,
21
21
"mkdocstrings.inventory" ,
22
22
"mkdocstrings.loggers" ,
23
- "mkdocstrings.plugin" ,
24
23
"mkdocstrings.handlers.base" ,
25
24
"mkdocstrings.handlers.rendering" ,
26
25
"mkdocstrings_handlers.python.handler" ,
27
26
"mkdocstrings_handlers.python.rendering" ,
28
27
],
29
28
)
30
- @pytest .mark .skipif (sys .version_info < (3 , 7 ), reason = "material is not installed on Python 3.6" )
31
29
def test_render_themes_templates (module , plugin ):
32
30
"""Test rendering of a given theme's templates.
33
31
You can’t perform that action at this time.
0 commit comments