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_flush.py Normal file
View file

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