pyvider-cty
2025-03-20
Massive test suite expansion and stabilization
94 files · 2,243+ · 15,438-
Collection Test Overhaul
2 files changed
test_cty_collections_list.py`test_cty_collections_list.py`: Updated error message assertions to match new format (`CtyList va...test_cty_collections_list_improve.py`test_cty_collections_list_improve.py`: 128 lines of improvements, then removed 50+ lines of obso...
test_collections_map.py: Extensive rewrite with new tests for nested maps, type validation, edge cases (~200 lines of changes across many commits) qualify architectural1 file
test_collections_map.py
test_collections_set.py: Reworked with additional coverage tests qualify internal1 file
test_collections_set.py
test_cty_collections_list.py: Updated error message assertions to match new format (CtyList validation failed:\nItem N) instantiate errata1 file
test_cty_collections_list.py
test_cty_collections_list_improve.py: 128 lines of improvements, then removed 50+ lines of obsolete tests qualify internal1 file
test_cty_collections_list_improve.py
- Added
test_collections_list_coverage.pyfor coverage gap tests qualify internal1 file
test_collections_list_coverage.py
- Added
test_collections_list_final.pywith extensive iterative additions (~200+ lines) instantiate internal1 file
test_collections_list_final.py
test_list_advanced.py: Migrated to unittest.TestCase, added new test cases qualify internal1 file
test_list_advanced.py
test_list_with_nested_types.py: 104 lines of nested type validation improvements decouple internal1 file
test_list_with_nested_types.py
Path Navigation Tests
1 file changed
test_path.pySee points for details
test_path.py: Major restructuring (99 lines simplified, 59 lines added), improving path traversal assertions instantiate internal1 file
test_path.py
Object/Structural Tests
1 file changed
bool.py`test_cty_structural_object.py`: Multiple rounds of updates adjusting assertions for validated ob...
test_cty_structural_object.py: Multiple rounds of updates adjusting assertions for validated object types (CtyBool instances instead of raw values) decouple internal1 file
bool.py
- Added
create_objectimport test qualify internal1 file
bool.py
- Updated error imports to include
InvalidTypeErrordecouple internal1 file
bool.py
Function Tests
1 file changed
__init__.py`test_stdlib.py`: 236 lines of changes updating standard library function tests
CtyList Source Improvements
2 files changed
list.pyEnhanced `list.py` with 34 new lines for better validation and 28 lines of refactored logicbase.pyAdded methods to `CtyValue` base class (11 lines)
- Enhanced
list.pywith 34 new lines for better validation and 28 lines of refactored logic decouple internal1 file
list.py
- Added methods to
CtyValuebase class (11 lines) instantiate internal1 file
base.py
Refinement Test Removal
3 files changed
test_values_refinement.pySee points for detailstest_values_refinement_2.pySee points for detailstest_values_refinement_3.pySee points for details
- Removed
tests/values/test_values_refinement.py(369 lines) qualify internal1 file
test_values_refinement.py
- Removed
tests/values/test_values_refinement_2.py(214 lines) qualify internal1 file
test_values_refinement_2.py
- Removed
tests/values/test_values_refinement_3.py(225 lines) qualify internal1 file
test_values_refinement_3.py
- Removed corresponding
tests/refinement/copies qualify internal3 files
xtest_values_refinement.pyxtest_values_refinement_2.pyxtest_values_refinement_3.py
Documentation
1 file changed
20250320-1533-cty-priming-debugging-claude.mdSee points for details