chore(tests): Final stabilization of test suite and full isolation of live_gui artifacts

This commit is contained in:
2026-03-04 01:05:56 -05:00
parent 966b5c3d03
commit 1be6193ee0
18 changed files with 7352 additions and 152 deletions

View File

@@ -70,8 +70,9 @@ def test_gui2_custom_callback_hook_works(live_gui: Any) -> None:
assert response == {'status': 'queued'}
time.sleep(1.5) # Give gui_2.py time to process its task queue
# Assert that the file WAS created and contains the correct data
assert TEST_CALLBACK_FILE.exists(), "Custom callback was NOT executed, or file path is wrong!"
with open(TEST_CALLBACK_FILE, "r") as f:
temp_workspace_file = Path('tests/artifacts/live_gui_workspace/tests/artifacts/temp_callback_output.txt')
assert temp_workspace_file.exists(), f"Custom callback was NOT executed, or file path is wrong! Expected: {temp_workspace_file}"
with open(temp_workspace_file, "r") as f:
content = f.read()
assert content == test_data, "Callback executed, but file content is incorrect."