refactor(sdm): Global pass with refined 'External Only' SDM tags. Pruned redundant internal references and fixed indentation logic in injector. Verified full project compilation.
This commit is contained in:
@@ -9,7 +9,10 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
from src.api_hook_client import ApiHookClient
|
||||
|
||||
def wait_for_value(client, field, expected, timeout=5):
|
||||
"""Polls the GUI state until a field matches the expected value."""
|
||||
"""
|
||||
Polls the GUI state until a field matches the expected value.
|
||||
[C: tests/test_live_workflow.py:test_full_live_workflow]
|
||||
"""
|
||||
start = time.time()
|
||||
while time.time() - start < timeout:
|
||||
val = client.get_value(field)
|
||||
@@ -32,4 +35,4 @@ def test_status_hook(live_gui) -> None:
|
||||
# 3. Set mma_status to 'hook_mma_test'
|
||||
client.set_value('mma_status', 'hook_mma_test')
|
||||
# 4. Verify via get_value('mma_status') == 'hook_mma_test' (with retry)
|
||||
assert wait_for_value(client, 'mma_status', 'hook_mma_test'), f"Failed to set mma_status to hook_mma_test. Current value: {client.get_value('mma_status')}"
|
||||
assert wait_for_value(client, 'mma_status', 'hook_mma_test'), f"Failed to set mma_status to hook_mma_test. Current value: {client.get_value('mma_status')}"
|
||||
Reference in New Issue
Block a user