The minimal cluster config literal "[cluster]\nhost = 'test'\nworkdir = '/tmp'" is inlined roughly ten times across tests/test_cli.py. Each copy must stay byte-identical for the tests to keep exercising the same minimal config, but nothing enforces that — a future edit to one copy silently diverges from the other copies.
Proposal
Extract a shared helper (or pytest fixture) that writes the minimal config to a given directory, and route the existing call sites through it. Test-only refactor; no behavior change.
The minimal cluster config literal
"[cluster]\nhost = 'test'\nworkdir = '/tmp'"is inlined roughly ten times acrosstests/test_cli.py. Each copy must stay byte-identical for the tests to keep exercising the same minimal config, but nothing enforces that — a future edit to one copy silently diverges from the other copies.Proposal
Extract a shared helper (or pytest fixture) that writes the minimal config to a given directory, and route the existing call sites through it. Test-only refactor; no behavior change.