Timer overhaul: update tests

This commit is contained in:
John McCardle 2026-01-03 22:44:53 -05:00
commit cec76b63dc
78 changed files with 521 additions and 495 deletions

View file

@ -21,7 +21,7 @@ def test(condition, message):
test_results.append(f"{message}")
test_passed = False
def run_tests(runtime):
def run_tests(timer, runtime):
"""Timer callback to run tests after game loop starts"""
global test_passed
@ -146,6 +146,6 @@ test_scene = mcrfpy.Scene("test_scene")
test_scene.activate()
# Schedule tests to run after game loop starts
mcrfpy.setTimer("test", run_tests, 100)
test_timer = mcrfpy.Timer("test", run_tests, 100, once=True)
print("Python object cache test initialized. Running tests...")