tools, instructions: Abhängigkeiten - Tests biegen config-Pfade über set_config_path um (pytest 9.2), Teardown-Wache; Befehlsreferenz mit typer 0.29 neu erzeugt, typer>=0.29.1, kein click mehr in Tests (#243); 10.2.0-beta.2
CI / verify (push) Successful in 8m31s
CI / pwsh (push) Successful in 2m51s
Converters / converters (push) Successful in 9m42s
Release / converters (push) Successful in 26s
Release / release (push) Successful in 41s
Release / wiki-mirror (push) Skipped
CI / verify (push) Successful in 8m31s
CI / pwsh (push) Successful in 2m51s
Converters / converters (push) Successful in 9m42s
Release / converters (push) Successful in 26s
Release / release (push) Successful in 41s
Release / wiki-mirror (push) Skipped
Files changed: - CHANGES.md - VERSION - docs/reference/commands/configuration.md - docs/reference/commands/content-migrations.md - docs/reference/commands/distribution-and-versioning.md - docs/reference/commands/exports.md - docs/reference/commands/finding-and-checking.md - docs/reference/commands/git.md - docs/reference/commands/pages.md - docs/reference/commands/raw-material-and-uploads.md - docs/reference/commands/types-instructions-and-docs.md - instructions/dev/testing-conventions.md - tools/chemenu/config.py - tools/chemenu/tests/conftest.py - tools/chemenu/tests/test_api.py - tools/chemenu/tests/test_backup.py - tools/chemenu/tests/test_cite_cmd.py - tools/chemenu/tests/test_collect.py - tools/chemenu/tests/test_config_shapes.py - tools/chemenu/tests/test_conventions.py - tools/chemenu/tests/test_corpus_cache.py - tools/chemenu/tests/test_dist_cmd.py - tools/chemenu/tests/test_dist_upgrade.py - tools/chemenu/tests/test_docs_verify.py - tools/chemenu/tests/test_doctor.py - tools/chemenu/tests/test_export_guidelines.py - tools/chemenu/tests/test_export_run.py - tools/chemenu/tests/test_git_publish.py - tools/chemenu/tests/test_hermetic_env.py - tools/chemenu/tests/test_install_doc.py - tools/chemenu/tests/test_instructions_cmd.py - tools/chemenu/tests/test_kb_collections.py - tools/chemenu/tests/test_legacy_settings.py - tools/chemenu/tests/test_lint.py - tools/chemenu/tests/test_log_append.py - tools/chemenu/tests/test_migrate_cmd.py - tools/chemenu/tests/test_new_page.py - tools/chemenu/tests/test_page_ops.py - tools/chemenu/tests/test_pipeline_l0.py - tools/chemenu/tests/test_preflight.py - tools/chemenu/tests/test_provenance.py - tools/chemenu/tests/test_reference_doc.py - tools/chemenu/tests/test_review.py - tools/chemenu/tests/test_settings.py - tools/chemenu/tests/test_task_cmd.py - tools/chemenu/tests/test_telemetry_policy.py - tools/chemenu/tests/test_toc.py - tools/chemenu/tests/test_touch.py - tools/chemenu/tests/test_upload_cmd.py - tools/chemenu/tests/test_version_cmd.py - tools/chemenu/tests/test_work_cmd.py - tools/requirements.txt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015uxGFdBAmyA23g1isCtGEY
This commit is contained in:
1 parent
832056a0b0
commit
0fce67e6b9
52 files changed
+546
-337
No files matched your search
@@ -13,7 +13,7 @@ import pytest
|
||||
|
||||
from chemenu import config, conventions, prerequisites, toolpaths
|
||||
from chemenu.commands import doctor, instructions_cmd
|
||||
from chemenu.tests.conftest import write_settings
|
||||
from chemenu.tests.conftest import set_config_path, write_settings
|
||||
|
||||
|
||||
def _git(root: Path, *args: str) -> None:
|
||||
@@ -72,14 +72,14 @@ def instance(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
|
||||
"---\nname: wiki-demo\ndescription: Demo skill.\n---\n", encoding="utf-8"
|
||||
)
|
||||
|
||||
monkeypatch.setattr(config, "ROOT", root)
|
||||
monkeypatch.setattr(config, "KB_DIR", kb)
|
||||
monkeypatch.setattr(config, "INDEX_FILE", kb / "index.md")
|
||||
monkeypatch.setattr(config, "LOG_FILE", kb / "log.md")
|
||||
monkeypatch.setattr(config, "PROVENANCE_FILE", kb / "provenance.md")
|
||||
monkeypatch.setattr(config, "INSTRUCTIONS_DIR", instructions)
|
||||
monkeypatch.setattr(config, "AGENTS_SKILLS_DIR", root / ".agents" / "skills")
|
||||
monkeypatch.setattr(config, "CLAUDE_SKILLS_DIR", root / ".claude" / "skills")
|
||||
set_config_path(monkeypatch, "ROOT", root)
|
||||
set_config_path(monkeypatch, "KB_DIR", kb)
|
||||
set_config_path(monkeypatch, "INDEX_FILE", kb / "index.md")
|
||||
set_config_path(monkeypatch, "LOG_FILE", kb / "log.md")
|
||||
set_config_path(monkeypatch, "PROVENANCE_FILE", kb / "provenance.md")
|
||||
set_config_path(monkeypatch, "INSTRUCTIONS_DIR", instructions)
|
||||
set_config_path(monkeypatch, "AGENTS_SKILLS_DIR", root / ".agents" / "skills")
|
||||
set_config_path(monkeypatch, "CLAUDE_SKILLS_DIR", root / ".claude" / "skills")
|
||||
monkeypatch.setenv("WIKI_AUTHOR", "Fixture Author")
|
||||
monkeypatch.delenv("WIKITOOL_SESSION_ID", raising=False)
|
||||
|
||||
@@ -510,7 +510,7 @@ def test_no_author_fails(instance, monkeypatch):
|
||||
|
||||
|
||||
def test_not_a_git_repo_fails(tmp_path, monkeypatch):
|
||||
monkeypatch.setattr(config, "ROOT", tmp_path)
|
||||
set_config_path(monkeypatch, "ROOT", tmp_path)
|
||||
checks = doctor.run_doctor()
|
||||
assert _status(checks, "git-repo") == "FAIL"
|
||||
|
||||
|
||||
Reference in new issue
Block a user