Skip to content

Commit

Permalink
chore: MkDocs default schema needs to be obtained differently now
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Jun 9, 2021
1 parent 07fb484 commit b3e122b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_extension.py
Expand Up @@ -7,11 +7,19 @@
from markdown import Markdown
from mkdocs import config

try:
from mkdocs.config.defaults import get_schema
except ImportError:

def get_schema():
"""Fallback for old versions of MkDocs."""
return config.DEFAULT_SCHEMA


@pytest.fixture(name="ext_markdown")
def fixture_ext_markdown(request, tmp_path):
"""Yield a Markdown instance with MkdocstringsExtension, with config adjustments."""
conf = config.Config(schema=config.DEFAULT_SCHEMA)
conf = config.Config(schema=get_schema())

conf_dict = {
"site_name": "foo",
Expand Down

0 comments on commit b3e122b

Please sign in to comment.