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 architectural
    1 file
    • test_collections_map.py
  • test_collections_set.py: Reworked with additional coverage tests qualify internal
    1 file
    • test_collections_set.py
  • test_cty_collections_list.py: Updated error message assertions to match new format (CtyList validation failed:\nItem N) instantiate errata
    1 file
    • test_cty_collections_list.py
  • test_cty_collections_list_improve.py: 128 lines of improvements, then removed 50+ lines of obsolete tests qualify internal
    1 file
    • test_cty_collections_list_improve.py
  • Added test_collections_list_coverage.py for coverage gap tests qualify internal
    1 file
    • test_collections_list_coverage.py
  • Added test_collections_list_final.py with extensive iterative additions (~200+ lines) instantiate internal
    1 file
    • test_collections_list_final.py
  • test_list_advanced.py: Migrated to unittest.TestCase, added new test cases qualify internal
    1 file
    • test_list_advanced.py
  • test_list_with_nested_types.py: 104 lines of nested type validation improvements decouple internal
    1 file
    • test_list_with_nested_types.py

Path Navigation Tests

1 file changed
  • test_path.py See points for details
  • test_path.py: Major restructuring (99 lines simplified, 59 lines added), improving path traversal assertions instantiate internal
    1 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 internal
    1 file
    • bool.py
  • Added create_object import test qualify internal
    1 file
    • bool.py
  • Updated error imports to include InvalidTypeError decouple internal
    1 file
    • bool.py

Function Tests

1 file changed
  • __init__.py `test_stdlib.py`: 236 lines of changes updating standard library function tests
  • test_function_base.py: Updated imports to include CtyType decouple internal
    1 file
    • test_function_base.py
  • test_stdlib.py: 236 lines of changes updating standard library function tests qualify internal
    1 file
    • __init__.py

CtyList Source Improvements

2 files changed
  • list.py Enhanced `list.py` with 34 new lines for better validation and 28 lines of refactored logic
  • base.py Added methods to `CtyValue` base class (11 lines)
  • Enhanced list.py with 34 new lines for better validation and 28 lines of refactored logic decouple internal
    1 file
    • list.py
  • Added methods to CtyValue base class (11 lines) instantiate internal
    1 file
    • base.py

Refinement Test Removal

3 files changed
  • test_values_refinement.py See points for details
  • test_values_refinement_2.py See points for details
  • test_values_refinement_3.py See points for details
  • Removed tests/values/test_values_refinement.py (369 lines) qualify internal
    1 file
    • test_values_refinement.py
  • Removed tests/values/test_values_refinement_2.py (214 lines) qualify internal
    1 file
    • test_values_refinement_2.py
  • Removed tests/values/test_values_refinement_3.py (225 lines) qualify internal
    1 file
    • test_values_refinement_3.py
  • Removed corresponding tests/refinement/ copies qualify internal
    3 files
    • xtest_values_refinement.py
    • xtest_values_refinement_2.py
    • xtest_values_refinement_3.py

Documentation

1 file changed
  • 20250320-1533-cty-priming-debugging-claude.md See points for details
  • Added docs/20250320-1533-cty-priming-debugging-claude.md debugging guide specify internal
    1 file
    • 20250320-1533-cty-priming-debugging-claude.md