Directory structure cleanup and organization overhaul
This commit is contained in:
parent
1a143982e1
commit
98fc49a978
119 changed files with 10483 additions and 4042 deletions
|
|
@ -1,30 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Simple test for mcrfpy.automation.screenshot()"""
|
||||
import mcrfpy
|
||||
from mcrfpy import automation
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Create a simple scene
|
||||
mcrfpy.createScene("test")
|
||||
mcrfpy.setScene("test")
|
||||
|
||||
# Take a screenshot immediately
|
||||
try:
|
||||
filename = "test_screenshot.png"
|
||||
result = automation.screenshot(filename)
|
||||
print(f"Screenshot result: {result}")
|
||||
|
||||
# Check if file exists
|
||||
if os.path.exists(filename):
|
||||
size = os.path.getsize(filename)
|
||||
print(f"PASS - Screenshot saved: {filename} ({size} bytes)")
|
||||
else:
|
||||
print(f"FAIL - Screenshot file not created: {filename}")
|
||||
except Exception as e:
|
||||
print(f"FAIL - Screenshot error: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
# Exit immediately
|
||||
sys.exit(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue