Repository navigation
Fix #507 --framework option for darnit run - #517
Natnaeltewodros wants to merge 2 commits into
Conversation
mlieberman85
left a comment
There was a problem hiding this comment.
Thanks for picking this up! The cli.py change is right: cmd_run already reads args.framework, it just was never registered on the run subparser. A few things before we can merge:
- Please link the issue: add
Fixes #507to the description. - AI disclosure: the "AI assistance" section of the PR template is missing. Please fill it in. If AI was used, say which tool and which parts, and add an
Assisted-by:trailer to the commit. - Unrelated change: the PR re-indents the body of
test_golden_prints_header. Please revert that so the diff only contains the new option and its test. - Test placement: the new test is appended directly after the
raise NotImplementedErrorof the previous test, with no blank lines before it and two stray blank lines inside it. Please separate it with two blank lines and runuv run ruff check .anduv run ruff formaton the file. - Test strength: the test only checks the exit code and empty stderr, which would also pass if
--frameworkwere accepted but ignored. Please also assert that the selected framework was used, for example that output includes a control ID that only the testchecks framework defines.
Once those are in, I'll approve the CI run.
|
One more thing I missed: both commits fail the DCO check. They need a |
|
Thanks for picking up #507. |
Summary
Fixes the
darnit runcommand so that the--frameworkoption is recognized and accepted. This allows users to explicitly select a framework, such astestchecks, when running the command.Added a regression test to verify that
darnit run --framework testchecks --feedback noninteractiveis accepted successfully.Type of Change
Framework Changes Checklist
If this PR modifies the darnit framework (
packages/darnit/):docs/architecture/framework-design.md) if behavior changeduv run python scripts/validate_sync.py --verboseand it passesControl/TOML Changes Checklist
If this PR modifies controls or TOML configuration:
Testing
uv run pytest tests/ -v)uv run ruff check .)AI assistance
Additional Notes