raw accept: Datums-Shard statt Typverzeichnis, fidelity/authority am Drop-Punkt (Teil 1/3, #67)
Files changed: - .gitignore - CHANGES.md - VERSION - instructions/bootstrap.md - instructions/wiki-ingest/SKILL.md - kb/CONTRACT.md - raw/CONTRACT.md - tools/CONTRACT.md - tools/chemenu/commands/dist_cmd.py - tools/chemenu/commands/docs_verify.py - tools/chemenu/commands/new_page.py - tools/chemenu/commands/raw_cmd.py - tools/chemenu/commands/touch.py - tools/chemenu/lint_core.py - tools/chemenu/tests/test_dist_cmd.py - tools/chemenu/tests/test_docs_verify.py - tools/chemenu/tests/test_lint.py - tools/chemenu/tests/test_new_page.py - tools/chemenu/tests/test_provenance.py - tools/chemenu/tests/test_raw_cmd.py - tools/chemenu/tests/test_touch.py - tools/chemenu/tests/test_type_resolver.py - tools/chemenu/type_resolver.py - types/source.md - types/source.schema.yaml
This commit is contained in:
1 parent
f2a093bc8b
commit
f4353ccfb3
25 files changed
+1167
-344
No files matched your search
@@ -134,31 +134,6 @@ def test_legacy_type_regex_matches_pre_migration_form():
|
||||
assert not docs_verify.LEGACY_TYPE_RE.search("---\ntype: types/comparison.md\n---")
|
||||
|
||||
|
||||
def test_this_repos_raw_subdirs_are_documented():
|
||||
assert docs_verify.check_raw_subdirs() == []
|
||||
|
||||
|
||||
def test_raw_subdirs_mismatch_is_reported(tmp_path, monkeypatch):
|
||||
"""The regression this guards: `dist_cmd.RAW_SUBDIRS` and raw/CONTRACT.md's
|
||||
routing table are two places naming the same set (AGENTS.md invariant 8),
|
||||
so either one drifting from the other must be caught in both directions."""
|
||||
(tmp_path / "raw").mkdir()
|
||||
(tmp_path / "raw" / "CONTRACT.md").write_text(
|
||||
"| Directory | Holds |\n|---|---|\n| `articles/` | ... |\n| `videos/` | ... |\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
monkeypatch.setattr(config, "ROOT", tmp_path)
|
||||
monkeypatch.setattr(docs_verify.dist_cmd, "RAW_SUBDIRS", ("articles", "documents"))
|
||||
issues = docs_verify.check_raw_subdirs()
|
||||
assert any("missing `documents/`" in i for i in issues)
|
||||
assert any("lists `videos/`" in i for i in issues)
|
||||
|
||||
|
||||
def test_raw_subdirs_check_is_skipped_without_a_contract(tmp_path, monkeypatch):
|
||||
monkeypatch.setattr(config, "ROOT", tmp_path)
|
||||
assert docs_verify.check_raw_subdirs() == []
|
||||
|
||||
|
||||
def test_no_content_is_gitignored():
|
||||
"""The regression guard for the 2026-08-13 `.gitignore` rewrite: patterns
|
||||
like `*temp*` and `bin/` were silently excluding files under raw/, so the
|
||||
|
||||
Reference in new issue
Block a user