Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: MkDocs default schema needs to be obtained differently now #273

Merged
merged 1 commit into from
Apr 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion tests/test_extension.py
Original file line number Diff line number Diff line change
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