test_the_refresh_interval_reads_the_environment¶
Tests › tests/test_background_indexing.py
What this test is for
Why it exists
Default, disabled, explicit and malformed interval values.
tests/test_background_indexing.py:293 · its file's page
What it checks (4)
assert refresh_interval({}) == server_module.DEFAULT_REFRESH_INTERVAL_SECONDSassert refresh_interval({server_module.REFRESH_INTERVAL_ENV: "0"}) == 0assert refresh_interval({server_module.REFRESH_INTERVAL_ENV: "5"}) == 5assert (refresh_interval({server_module.REFRESH_INTERVAL_ENV: "soon"}) == server_module.DEFAULT_REFRESH_INTERVAL_SECONDS )
Where the product reaches it
main→refresh_interval(flow)
Call flow
What 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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-004 measured