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 |
||
|---|---|---|
| .. | ||
| test_activity_integration.py | ||
| test_activity_processing.py | ||
| test_app_activity_functions.py | ||
| test_app_integration.py | ||
| test_multiple_activities.py | ||