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

requirementlinkedpath to the implementer
REQ-DDB-CONFIG-001measuredtest_the_fixture_config_loads_under_the_current_schema → load_declaration
REQ-DDB-GUARD-012measuredtest_the_fixture_config_loads_under_the_current_schema → load_config
REQ-DDB-GUARD-024measuredtest_the_fixture_config_loads_under_the_current_schema → load_config → apply_opt_in_languages
REQ-DDB-WIKI-054inferredtest_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

Activity · 4 steps
lines 36–36config = load_config(path)lines 37–37load_declaration(path.parent)lines 38–38◇ if "csample" in str(path)lines 39–39assert config["validate"]["tags"]["req"]["pattern"] == "^REQ-[0-9]{4}$"