test_the_refresh_interval_reads_the_environment

Tests › tests/test_background_indexing.py

passed Passed in the packaged run.

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)

  1. assert refresh_interval({}) == server_module.DEFAULT_REFRESH_INTERVAL_SECONDS
  2. assert refresh_interval({server_module.REFRESH_INTERVAL_ENV: "0"}) == 0
  3. assert refresh_interval({server_module.REFRESH_INTERVAL_ENV: "5"}) == 5
  4. assert (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

test_the_refresh_interval_reads_the_environment→refresh_interval

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.

test_the_refresh_interval_reads_the_environment · 4 checksrefresh_intervalREQ-DDB-MCP-004 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.