Skip to content

Commit 2d8bca6

Browse files
Fix test failures: add ZensicalToolSpec to ALL_TOOL_SPECS and update tests for zensical
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/97dde0ae-f496-4478-a145-0ee24759049b Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
1 parent e280165 commit 2d8bca6

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

src/usethis/_tool/impl/spec/all_.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from usethis._tool.impl.spec.ruff import RuffToolSpec
1616
from usethis._tool.impl.spec.tach import TachToolSpec
1717
from usethis._tool.impl.spec.ty import TyToolSpec
18+
from usethis._tool.impl.spec.zensical import ZensicalToolSpec
1819

1920
ALL_TOOL_SPECS: list[
2021
CodespellToolSpec
@@ -30,6 +31,7 @@
3031
| RuffToolSpec
3132
| TachToolSpec
3233
| TyToolSpec
34+
| ZensicalToolSpec
3335
] = [
3436
# Alphabetical order, matching ALL_TOOLS in usethis._tool.all_
3537
CodespellToolSpec(),
@@ -45,4 +47,5 @@
4547
RuffToolSpec(),
4648
TachToolSpec(),
4749
TyToolSpec(),
50+
ZensicalToolSpec(),
4851
]

tests/usethis/_core/test_list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_empty_project(self, tmp_path: Path):
4545
UsageRow(category="tool", name="Ruff", status="unused"),
4646
UsageRow(category="tool", name="Tach", status="unused"),
4747
UsageRow(category="tool", name="ty", status="unused"),
48+
UsageRow(category="tool", name="Zensical", status="unused"),
4849
UsageRow(category="config", name="docstyle", status="unused"),
4950
UsageRow(category="", name="README", status="unused"),
5051
],
@@ -75,6 +76,7 @@ def test_ruff_used(self, tmp_path: Path):
7576
UsageRow(category="tool", name="Ruff", status="used"),
7677
UsageRow(category="tool", name="Tach", status="unused"),
7778
UsageRow(category="tool", name="ty", status="unused"),
79+
UsageRow(category="tool", name="Zensical", status="unused"),
7880
UsageRow(category="config", name="docstyle", status="unused"),
7981
UsageRow(category="", name="README", status="unused"),
8082
],
@@ -102,6 +104,7 @@ def test_uv_init_case(self, uv_init_dir: Path):
102104
UsageRow(category="tool", name="Ruff", status="unused"),
103105
UsageRow(category="tool", name="Tach", status="unused"),
104106
UsageRow(category="tool", name="ty", status="unused"),
107+
UsageRow(category="tool", name="Zensical", status="unused"),
105108
UsageRow(category="config", name="docstyle", status="unused"),
106109
UsageRow(category="", name="README", status="used"),
107110
],

tests/usethis/_ui/interface/test_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def test_dependencies_added(self, tmp_path: Path):
2424
# Assert
2525
assert result.exit_code == 0, result.output
2626
with change_cwd(tmp_path), files_manager():
27-
assert Dependency(name="mkdocs") in get_deps_from_group("doc")
27+
assert Dependency(name="zensical") in get_deps_from_group("doc")

tests/usethis/_ui/interface/test_init.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def test_hook_included(self, tmp_path: Path):
3232
"✔ Adding a recommended git hook framework.\n"
3333
"☐ Run 'uv run pre-commit run -a' to run the hooks manually.\n"
3434
"✔ Adding recommended documentation tools.\n"
35-
"☐ Run 'uv run mkdocs build' to build the documentation.\n"
36-
"☐ Run 'uv run mkdocs serve' to serve the documentation locally.\n"
35+
"☐ Run 'uv run zensical build' to build the documentation.\n"
36+
"☐ Run 'uv run zensical serve' to serve the documentation locally.\n"
3737
"✔ Adding recommended linters.\n"
3838
"☐ Run 'uv run deptry src' to run deptry.\n"
3939
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
@@ -100,8 +100,8 @@ def test_arch_included(self, tmp_path: Path):
100100
"☐ Populate 'README.md' to help users understand the project.\n"
101101
"✔ Setting the development status to '1 - Planning'.\n"
102102
"✔ Adding recommended documentation tools.\n"
103-
"☐ Run 'uv run mkdocs build' to build the documentation.\n"
104-
"☐ Run 'uv run mkdocs serve' to serve the documentation locally.\n"
103+
"☐ Run 'uv run zensical build' to build the documentation.\n"
104+
"☐ Run 'uv run zensical serve' to serve the documentation locally.\n"
105105
"✔ Adding recommended linters.\n"
106106
"☐ Run 'uv run deptry src' to run deptry.\n"
107107
"☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.\n"
@@ -141,9 +141,9 @@ def test_none_backend(self, tmp_path: Path):
141141
"☐ Populate 'README.md' to help users understand the project.\n"
142142
"✔ Setting the development status to '1 - Planning'.\n"
143143
"✔ Adding recommended documentation tools.\n"
144-
"☐ Add the doc dependency 'mkdocs'.\n"
145-
"☐ Run 'mkdocs build' to build the documentation.\n"
146-
"☐ Run 'mkdocs serve' to serve the documentation locally.\n"
144+
"☐ Add the doc dependency 'zensical'.\n"
145+
"☐ Run 'zensical build' to build the documentation.\n"
146+
"☐ Run 'zensical serve' to serve the documentation locally.\n"
147147
"✔ Adding recommended linters.\n"
148148
"☐ Add the dev dependency 'deptry'.\n"
149149
"☐ Add the dev dependency 'ruff'.\n"

0 commit comments

Comments
 (0)