diff --git a/python/tests/integration/test_awesome_nav.py b/python/tests/integration/test_awesome_nav.py index 00a5d5f..948fc43 100644 --- a/python/tests/integration/test_awesome_nav.py +++ b/python/tests/integration/test_awesome_nav.py @@ -266,9 +266,7 @@ def test_explicit_page_title_precedes_metadata_and_heading( docs.mkdir() overrides = tmp_path / "overrides" overrides.mkdir() - (overrides / "main.html").write_text( - "{{ page.title }}", encoding="utf-8" - ) + (overrides / "main.html").write_text("{{ page.title }}", encoding="utf-8") (docs / "index.md").write_text( "---\ntitle: Metadata title\n---\n\n# Heading title\n", encoding="utf-8", diff --git a/python/tests/unit/test_config.py b/python/tests/unit/test_config.py index 0c48b2d..5ebc9dc 100644 --- a/python/tests/unit/test_config.py +++ b/python/tests/unit/test_config.py @@ -256,9 +256,7 @@ class TestPluginShimming: "mdx_configs": {}, } - def test_literate_nav_is_disabled_when_absent( - self, tmp_path: Path - ) -> None: + def test_literate_nav_is_disabled_when_absent(self, tmp_path: Path) -> None: config = self._parse_yaml(tmp_path, plugins=[]) assert config["plugins"]["literate_nav"]["config"]["enabled"] is False @@ -305,9 +303,7 @@ class TestPluginShimming: }, } - def test_awesome_nav_is_disabled_when_absent( - self, tmp_path: Path - ) -> None: + def test_awesome_nav_is_disabled_when_absent(self, tmp_path: Path) -> None: plugin = self._parse_yaml(tmp_path, plugins=[])["plugins"] assert plugin["awesome_nav"]["config"]["enabled"] is False @@ -388,9 +384,7 @@ class TestPluginShimming: "cache_safe": False, } - def test_minify_plugin_is_disabled_by_default( - self, tmp_path: Path - ) -> None: + def test_minify_plugin_is_disabled_by_default(self, tmp_path: Path) -> None: config = self._parse_yaml(tmp_path, plugins=[]) plugin = config["plugins"]["minify"]["config"] assert plugin["enabled"] is False @@ -418,9 +412,7 @@ class TestPluginShimming: "tags", ] assert instances[0]["config"]["listings_directive"] == "$tags" - assert instances[1]["config"]["filters"] == { - "include": ["private/**"] - } + assert instances[1]["config"]["filters"] == {"include": ["private/**"]} assert instances[1]["config"]["tags_name_property"] == "labels" assert "tags_slugify" not in instances[0]["config"]