test_same_key_sites.py¶
tests/test_same_key_sites.py
A property key a function writes leads to the few other symbols that define it (F1-mm; 2.0.0).
test_a_written_key_leads_to_its_default
None test_same_key_sites.test_a_written_key_leads_to_its_default(built)
retryPolicyConfiguration and retryLimit both lead to DEFAULT_CONFIG; nothing else.
tests/test_same_key_sites.py:82
Checks
assert _sites(built, "buildRequestOptions") == [
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-INDEX-004 | measured | |
| REQ-DDB-INDEX-011 | catalog | |
| REQ-DDB-PIPE-003 | measured | |
| REQ-DDB-PIPE-011 | measured | |
| REQ-DDB-PIPE-012 | measured | |
| REQ-DDB-QUERY-001 | measured | |
| REQ-DDB-QUERY-002 | measured | |
| REQ-DDB-QUERY-003 | measured | |
| REQ-DDB-QUERY-004 | measured | |
| REQ-DDB-QUERY-006 | measured | |
| REQ-DDB-QUERY-009 | measured | |
| REQ-DDB-QUERY-010 | measured | |
| REQ-DDB-QUERY-012 | measured | |
| REQ-DDB-SCHEMA-011 | measured |
Source · 8 lines
def test_a_written_key_leads_to_its_default(built) -> None:
"""@brief retryPolicyConfiguration and retryLimit both lead to DEFAULT_CONFIG; nothing else."""
assert _sites(built, "buildRequestOptions") == [
("retryLimit", "DEFAULT_CONFIG", "src/network_manager.ts", 5),
("retryPolicyConfiguration", "DEFAULT_CONFIG", "src/network_manager.ts", 4),
]
Activity · 1 steps
test_test_files_and_common_keys_are_left_out
None test_same_key_sites.test_test_files_and_common_keys_are_left_out(built)
No test_helper site; no `headers` (six other holders, over KEY_RARITY).
tests/test_same_key_sites.py:90
Checks
assert all(f != "test/test_helper.ts" for _k, _h, f, _l in rows)assert all(k != "headers" for k, _h, _f, _l in rows)
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-INDEX-004 | measured | |
| REQ-DDB-INDEX-011 | catalog | |
| REQ-DDB-PIPE-003 | measured | |
| REQ-DDB-PIPE-011 | measured | |
| REQ-DDB-PIPE-012 | measured | |
| REQ-DDB-QUERY-001 | measured | |
| REQ-DDB-QUERY-002 | measured | |
| REQ-DDB-QUERY-003 | measured | |
| REQ-DDB-QUERY-004 | measured | |
| REQ-DDB-QUERY-006 | measured | |
| REQ-DDB-QUERY-009 | measured | |
| REQ-DDB-QUERY-010 | measured | |
| REQ-DDB-QUERY-012 | measured | |
| REQ-DDB-SCHEMA-011 | measured | |
| REQ-DDB-WIKI-054 | inferred | test_test_files_and_common_keys_are_left_out → all |
Source · 5 lines
def test_test_files_and_common_keys_are_left_out(built) -> None:
"""@brief No test_helper site; no `headers` (six other holders, over KEY_RARITY)."""
rows = _sites(built, "buildRequestOptions")
assert all(f != "test/test_helper.ts" for _k, _h, f, _l in rows)
assert all(k != "headers" for k, _h, _f, _l in rows)1 more lines, not shown