Private
Public Access
0
0

refactor(test): wrap live_gui subprocess in _LiveGuiHandle class

This commit is contained in:
2026-06-09 15:37:47 -04:00
parent 30c04860c7
commit 16bd3d3a47
3 changed files with 56 additions and 5 deletions
+4 -2
View File
@@ -17,14 +17,16 @@ from src.api_hook_client import ApiHookClient
# Session-wide storage for comparing metrics
_shared_metrics = {}
def test_performance_benchmarking(live_gui: tuple) -> None:
def test_performance_benchmarking(live_gui) -> None:
"""
Collects performance metrics for the current GUI script over a 5-second window.
Ensures the application does not lock up and can report its internal state.
"""
process, gui_script = live_gui
handle = live_gui
process = handle.process
gui_script = handle.gui_script
client = ApiHookClient()
# Wait for app to stabilize and render some frames
time.sleep(3.0)