opencompletion.com/tests/unit
Claude 6ce46fc5a0
Add template control structure validation to YAML validator
Enhance the activity YAML validator to detect and reject Jinja2 and
Handlebars control structures, enforcing the substitution-only template
system design.

Changes:
- Add regex patterns for Jinja2 ({% %}) and Handlebars ({{# }})
- Add _check_template_syntax() method
- Integrate checks in content_blocks, questions, tokens_for_ai, hints
- Add 7 comprehensive unit tests for template validation
- All 59 activity YAMLs + SPEC.yaml pass validation (0 errors)
2025-11-10 18:55:21 +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_utils.py Add comprehensive unit tests for activity_utils.py v2.0 features 2025-11-10 16:55:12 +00:00
test_activity_yaml_validator.py Add template control structure validation to YAML validator 2025-11-10 18:55:21 +00: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_random_buckets.py Add random bucket support and comprehensive YAML specification 2025-11-10 08:57:14 -05:00
test_yaml_loading.py Integrate comprehensive testing framework with Makefile 2025-08-10 19:38:50 -04:00