#!/usr/bin/env python """ Test script to verify that the ImportError is fixed """ import os import django # Setup Django os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PX360.settings') django.setup() try: from apps.surveys.tasks import create_action_from_negative_survey print("✓ Successfully imported create_action_from_negative_survey") print(f"✓ Function: {create_action_from_negative_survey.__name__}") print(f"✓ Docstring: {create_action_from_negative_survey.__doc__[:100]}...") print("\n✓ ImportError is FIXED!") except ImportError as e: print(f"✗ ImportError still exists: {e}") exit(1) except Exception as e: print(f"✗ Unexpected error: {e}") exit(1) print("\nAll imports successful!")