Context
This is a follow-up from PR #2682 to improve test coverage in scripts/dockerfile_fragments.py.
Suggestion
The current test_dry_run test validates that main() completes against real Dockerfile trees, but doesn't assert on actual replacements. For stronger regression protection, consider:
- Extending
test_dry_run to assert that at least one known marker in a small synthetic Dockerfile gets rewritten as expected
- Adding a focused test that validates marker replacement behavior decoupled from the full repository layout
This would provide better regression protection beyond just verifying the script doesn't crash.
References