tofusoup
2025-06-01
Refactored Python infrastructure and fixed CLI test diagnostics
7 files · 660+ · 273-
CLI path resolution and error reporting
1 file changed
cli.pyFixed PROJECT_ROOT calculation to traverse three levels up instead of two; corrected py_generator_script path to use PROJECT_ROOT/src/ctytest; improved error messages with .resolve() for absolute paths
- Fixed PROJECT_ROOT to resolve correctly from src/ctytest/ to the actual project root
remediate
behavioral
1 file
cli.py
- Corrected env.sh path lookup and shell command construction for Python generator invocation
remediate
behavioral
1 file
cli.py
- Added GO_SRC_DIR existence check before attempting build or generate operations
harden
behavioral
1 file
cli.py
Test diagnostics and compatibility improvements
4 files changed
test_cli_commands.pyFixed InvalidSpecError by correcting test module imports; expanded test coverage with better assertionstest_cty_compatibility.pyAdjusted compatibility test expectations after path changespy_cty_generator.pyMinor adjustments to generator output formattingutils.pyAdded utility function
- Resolved test collection failures caused by stale path references after PROJECT_ROOT fix
remediate
behavioral
1 file
test_cli_commands.py