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

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:
torbenandClaude Opus 5.5 committed 2026-11-18 15:52:24 +01:00
1 parent 832056a0b0
commit 0fce67e6b9
52 files changed
+546 -337

No files matched your search

+5 -4
View File
@@ -8,6 +8,7 @@ from chemenu.commands.log_append import (
log_status,
parse_log_entries,
)
from chemenu.tests.conftest import set_config_path
def test_log_entry_format_matches_convention():
@@ -60,7 +61,7 @@ def test_ingests_since_last_lint_counts_from_the_start_when_never_linted():
def test_log_status_reports_zero_with_no_log_file(tmp_path, monkeypatch, capsys):
import chemenu.config as config
monkeypatch.setattr(config, "LOG_FILE", tmp_path / "log.md")
set_config_path(monkeypatch, "LOG_FILE", tmp_path / "log.md")
log_status()
assert "No kb/log.md yet" in capsys.readouterr().out
@@ -73,7 +74,7 @@ def test_log_status_warns_at_the_ten_ingest_threshold(tmp_path, monkeypatch, cap
format_log_entry("ingest", f"raw/notes/{i}.md", today="2026-08-01") for i in range(10)
)
log_file.write_text(body, encoding="utf-8")
monkeypatch.setattr(config, "LOG_FILE", log_file)
set_config_path(monkeypatch, "LOG_FILE", log_file)
log_status()
out = capsys.readouterr().out
@@ -111,7 +112,7 @@ def test_log_append_reports_an_unreadable_body_file_as_an_error(make_bad_file, t
log_file = tmp_path / "log.md"
before = "# Wiki Log\n"
log_file.write_text(before, encoding="utf-8")
monkeypatch.setattr(config, "LOG_FILE", log_file)
set_config_path(monkeypatch, "LOG_FILE", log_file)
bad_file = make_bad_file(tmp_path)
with pytest.raises(typer.Exit) as exc:
@@ -129,7 +130,7 @@ def test_log_append_reads_the_body_from_body_file(tmp_path, monkeypatch):
log_file = tmp_path / "log.md"
log_file.write_text("# Wiki Log\n", encoding="utf-8")
monkeypatch.setattr(config, "LOG_FILE", log_file)
set_config_path(monkeypatch, "LOG_FILE", log_file)
body_file = tmp_path / "body.md"
body_file.write_text("Created [[Docker]].", encoding="utf-8")