each-cli-test-creates-isolated-db

IN premise

Every CLI test method initializes a fresh SQLite database via `run_cli("init")` in a pytest `tmp_path`, ensuring zero shared state between tests.

Summary

Each CLI test starts with its own temporary database, so no test can leak data into another. This isolation means test failures always point to the code under test rather than to ordering or shared-state bugs.

Dependents

These beliefs depend on this one:

Details

Sourceentries/2026/04/29/tests-test_cli.md