Problem Description
src/modelinfo/ui.py has only 7% test coverage. While testing terminal UI output can be tricky, the rich library provides a Console(record=True) feature that allows you to capture terminal output to a string for assertions.
Proposed Solution
- Create
tests/test_ui.py.
- Provide dummy
info dictionaries (like what analyze_model returns).
- Capture the
rich console output and assert that critical strings (like the correct "VRAM (est):", Color-coded warnings, and model parameter counts) are rendered properly.
Alternatives Considered
No response
Additional Context
No response
Problem Description
src/modelinfo/ui.pyhas only 7% test coverage. While testing terminal UI output can be tricky, therichlibrary provides aConsole(record=True)feature that allows you to capture terminal output to a string for assertions.Proposed Solution
tests/test_ui.py.infodictionaries (like whatanalyze_modelreturns).richconsole output and assert that critical strings (like the correct "VRAM (est):", Color-coded warnings, and model parameter counts) are rendered properly.Alternatives Considered
No response
Additional Context
No response