tests for the last few issues (these test scripts should work with recent APIs, while the rest of the test suite needs an overhaul)
This commit is contained in:
parent
a57f0875f8
commit
2f4ebf3420
21 changed files with 1570 additions and 0 deletions
22
tests/test_module_simple.py
Normal file
22
tests/test_module_simple.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Simple module test"""
|
||||
import sys
|
||||
import mcrfpy
|
||||
|
||||
print("Step 1: Module loaded")
|
||||
|
||||
# Test window singleton exists (#184)
|
||||
print("Step 2: Checking window...")
|
||||
has_window = hasattr(mcrfpy, 'window')
|
||||
print(f" has window: {has_window}")
|
||||
|
||||
if has_window:
|
||||
print("Step 3: Getting window...")
|
||||
window = mcrfpy.window
|
||||
print(f" window: {window}")
|
||||
print("Step 4: Checking resolution...")
|
||||
res = window.resolution
|
||||
print(f" resolution: {res}")
|
||||
|
||||
print("PASS")
|
||||
sys.exit(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue