Skip to content

tests: extract a shared minimal-config helper in test_cli.py #42

Description

@ultimatile

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions