opencompletion.com/tests/integration
Claude bdf2863083
Fix integration tests and configure uncloseai.com models
Major improvements to test_activity_integration.py:
- Configure tests to use uncloseai.com models (hermes-3-llama-3.1-405b and qwen-2.5-72b)
- Fix Flask app and activity module configuration in test setUp
- Properly initialize MODEL_CLIENT_MAP with test models
- Set up activity.app, activity.db, and activity.get_room for proper test isolation
- Fix file path handling in create_test_activity_file()
- Improve activity YAML structure to avoid premature activity completion
- Add session refresh to handle database state properly

Test results improved from 3/9 passing to 7/9 passing (78% pass rate):
✓ test_cancel_activity
✓ test_display_activity_metadata
✓ test_execute_processing_script_with_metadata_operations
✓ test_handle_activity_response_correct_answer
✓ test_start_activity
✓ test_activity_state_metadata_persistence
✓ test_metadata_update_and_remove

Remaining issues (edge cases):
- test_handle_activity_response_increments_attempts: attempts counter behavior on incorrect answers
- test_loop_through_steps_until_question: step navigation emit count
2025-11-08 15:40:35 +00:00
..
test_activity_integration.py Fix integration tests and configure uncloseai.com models 2025-11-08 15:40:35 +00:00
test_activity_processing.py Fix hardcoded paths in test files and improve YAML error handling 2025-08-10 21:06:26 -04:00
test_app_activity_functions.py Improve test infrastructure and fix test failures 2025-11-08 14:04:09 +00:00
test_app_integration.py Add integration tests for activity.py and app.py 2025-11-08 14:18:56 +00:00
test_multiple_activities.py Integrate comprehensive testing framework with Makefile 2025-08-10 19:38:50 -04:00