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:
John McCardle 2026-01-08 10:31:21 -05:00
commit 2f4ebf3420
21 changed files with 1570 additions and 0 deletions

16
tests/test_iter_only.py Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env python3
import sys
import mcrfpy
print("1 - Creating scene")
scene = mcrfpy.Scene("test")
print("2 - Getting children")
ui = scene.children
print("3 - Creating frame")
frame = mcrfpy.Frame(pos=(0,0), size=(50,50))
print("4 - Appending frame")
ui.append(frame)
print("5 - Starting iteration")
for item in ui:
print(f"Item: {item}")
print("6 - Iteration done")
sys.exit(0)