test_fixture_config_current.py¶
tests/test_fixture_config_current.py
Every fixture `.clew.yaml` under tests/data is a CURRENT config: the gate and the declaration loader both accept it (2.0.0).
test_the_fixture_config_loads_under_the_current_schema
None test_fixture_config_current.test_the_fixture_config_loads_under_the_current_schema(Path path)
Neither loader refuses it, and the declared
tests/test_fixture_config_current.py:34
Checks
assert config["validate"]["tags"]["req"]["pattern"] == "^REQ-[0-9]{4}$"
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CONFIG-001 | measured | test_the_fixture_config_loads_under_the_current_schema → load_declaration |
| REQ-DDB-GUARD-012 | measured | test_the_fixture_config_loads_under_the_current_schema → load_config |
| REQ-DDB-GUARD-024 | measured | test_the_fixture_config_loads_under_the_current_schema → load_config → apply_opt_in_languages |
| REQ-DDB-WIKI-054 | inferred | test_the_fixture_config_loads_under_the_current_schema → load_declaration → load_declaration_located → _checked_sections → _checked_section → _checked_list_section → all |
Source · 6 lines
def test_the_fixture_config_loads_under_the_current_schema(path: Path) -> None:
"""@brief Neither loader refuses it, and the declared @req pattern is the one in force."""
config = load_config(path)
load_declaration(path.parent)
if "csample" in str(path):
assert config["validate"]["tags"]["req"]["pattern"] == "^REQ-[0-9]{4}$"1 more lines, not shown