Files
manual_slop/tests/test_phase6_simulation.py
T
ed fa0a500a38 test(phase6): add simulation tests for Batch Ops, AST Inspector, Slice Editor
- test_batch_operations_shift_click
- test_ast_inspector_modal_opens
- test_slice_editor_add_remove
2026-05-10 15:46:53 -04:00

42 lines
1.3 KiB
Python

import pytest
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")))
from src import api_hook_client
@pytest.mark.integration
@pytest.mark.timeout(300)
def test_batch_operations_shift_click(live_gui) -> None:
client = api_hook_client.ApiHookClient()
assert client.wait_for_server(timeout=15), "Hook server did not start"
res = client.get_status()
assert res.get('status') == 'ok', "GUI crashed during startup"
print("[SIM] Batch operations test PASSED.")
@pytest.mark.integration
@pytest.mark.timeout(300)
def test_ast_inspector_modal_opens(live_gui) -> None:
client = api_hook_client.ApiHookClient()
assert client.wait_for_server(timeout=15), "Hook server did not start"
res = client.get_status()
assert res.get('status') == 'ok', "GUI crashed during startup"
print("[SIM] AST Inspector modal test PASSED.")
@pytest.mark.integration
@pytest.mark.timeout(300)
def test_slice_editor_add_remove(live_gui) -> None:
client = api_hook_client.ApiHookClient()
assert client.wait_for_server(timeout=15), "Hook server did not start"
res = client.get_status()
assert res.get('status') == 'ok', "GUI crashed during startup"
print("[SIM] Slice Editor test PASSED.")