Timer overhaul: update tests
This commit is contained in:
parent
5d41292bf6
commit
cec76b63dc
78 changed files with 521 additions and 495 deletions
|
|
@ -6,7 +6,7 @@ from mcrfpy import automation
|
|||
import sys
|
||||
import time
|
||||
|
||||
def run_visual_test(runtime):
|
||||
def run_visual_test(timer, runtime):
|
||||
"""Timer callback to run visual tests and take screenshots."""
|
||||
print("\nRunning visual tests...")
|
||||
|
||||
|
|
@ -89,9 +89,9 @@ def main():
|
|||
ui.append(frame)
|
||||
|
||||
print("Scene setup complete. Scheduling visual tests...")
|
||||
|
||||
|
||||
# Schedule visual test to run after render loop starts
|
||||
mcrfpy.setTimer("visual_test", run_visual_test, 100)
|
||||
visual_test_timer = mcrfpy.Timer("visual_test", run_visual_test, 100, once=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue