mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
31 lines
850 B
Python
31 lines
850 B
Python
"""Test module for simple compatibility checks."""
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import os
|
|
|
|
# Add the project root to Python path
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
def test_basic_import():
|
|
"""Test basic import of ToolCompatibility."""
|
|
try:
|
|
from nodupe.core.tool_system.compatibility import ToolCompatibility, ToolCompatibilityError
|
|
print("✅ Import successful in test context")
|
|
|
|
# Test instantiation
|
|
compat = ToolCompatibility()
|
|
print(f"✅ Instance created: {type(compat)}")
|
|
|
|
return True
|
|
except ImportError as e:
|
|
print(f"❌ Import failed: {e}")
|
|
return False
|
|
except Exception as e:
|
|
print(f"❌ Error: {e}")
|
|
return False
|
|
|
|
if __name__ == "__main__":
|
|
success = test_basic_import()
|
|
sys.exit(0 if success else 1)
|