test_load_shared_key_patterns_parses_writers_and_readers¶
Tests › tests/test_build_docs_db.py
passed Passed in the packaged run.
What this test is for
Given
patterns_path = _write_shared_key_patterns_yaml(tmp_path)
When
writers, readers = load_shared_key_patterns(patterns_path)
Then
- ✓ len(writers) equals 1
- ✓ writers[0].pattern equals "datamodel_set"
- ✓ writers[0].key_arg_index equals 0
- ✓ len(readers) equals 1
- ✓ readers[0].pattern equals "datamodel_get"
tests/test_build_docs_db.py:1302 · its file's page
What it checks (5)
assert len(writers) == 1not attributedassert writers[0].pattern == "datamodel_set"not attributedassert writers[0].key_arg_index == 0not attributedassert len(readers) == 1not attributedassert readers[0].pattern == "datamodel_get"not attributed
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_load_shared_key_patterns_parses_writers_and_readers→_write_shared_key_patterns_yaml→load_shared_key_patternsWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-001 | catalog | unknown |
| REQ-DDB-PIPE-010 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-012 measured