You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where:faircode/figures.py (main() and the __main__ guard, lines 98-115), tests/test_figures.py.
Current gap:generate_figures() is tested, but the command-line wrapper that parses --results-dir and --metric, prints "Figures written to ...", and is the documented way to regenerate the plots is never run, so a renamed argument or a broken default would only show up when someone regenerates the figures by hand.
Suggested approach: call main(["--results-dir", str(tmp_path), "--metric", ...]) against a small results fixture (matplotlib is already required by the existing figure tests) and assert the output line and the written files; add an unknown-metric case.
Activity
test: run python -m faircode.figures as a subprocess (#1007)
yakew7 commentedon Oct 16, 2026
Fixed in 2cfe219 (on main). Full suite green (941 passed).