opencompletion.com/tests/unit
Claude 24ca0aab72
Add comprehensive unit tests for models.py and activity.py
- models.py: 55% → 100% coverage (29 tests)
  - Complete Room model testing (user management)
  - Complete UserSession model testing
  - Complete Message model testing (token counting, image detection)
  - Complete ActivityState model testing (metadata operations)

- activity.py: 14% → 20% coverage (25 tests)
  - get_activity_content with path traversal protection
  - execute_processing_script for Python execution
  - get_next_step for navigation
  - categorize_response for AI categorization
  - generate_ai_feedback for feedback generation
  - translate_text for translations
  - provide_feedback for feedback systems

Total: 54 new unit tests added, 135 tests now passing
2025-11-08 14:11:43 +00:00
..
test_activity.py Add comprehensive unit tests for models.py and activity.py 2025-11-08 14:11:43 +00:00
test_activity_yaml_validator.py modified: activity_yaml_validator.py 2025-08-11 12:39:42 -04:00
test_app.py Refactor activity functions into separate activity.py module 2025-10-22 20:23:06 -04:00
test_guarded_ai_functions.py Improve test infrastructure and fix test failures 2025-11-08 14:04:09 +00:00
test_models.py Add comprehensive unit tests for models.py and activity.py 2025-11-08 14:11:43 +00:00
test_yaml_loading.py Integrate comprehensive testing framework with Makefile 2025-08-10 19:38:50 -04:00