mirror of
https://github.com/zensical/zensical.git
synced 2026-09-24 23:35:35 +00:00
chore: format with Ruff
Signed-off-by: Timothée Mazzucotelli <dev@pawamoy.fr>
This commit is contained in:
+1
-3
@@ -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",
|
||||
|
||||
Vendored
+4
-12
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user