fix(dsh): restore native file tools and official loading UI
Core regression / Python core and release configuration (push) Successful in 20s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 15s
Core regression / JavaScript syntax (pull_request) Successful in 3s
Core regression / Python core and release configuration (push) Successful in 20s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 15s
Core regression / JavaScript syntax (pull_request) Successful in 3s
This commit is contained in:
1 parent
1340f6c233
commit
705c15eb93
19 files changed
+398
-42
No files matched your search
@@ -5,6 +5,7 @@ from types import SimpleNamespace
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import pytest
|
||||
from shiboken6 import isValid
|
||||
from dx_productivity.trial_task_center.logging_setup import configure_logging
|
||||
from dx_productivity.trial_task_center.store import TaskStore
|
||||
from dx_productivity.trial_task_center.service import TaskCenterService
|
||||
@@ -45,4 +46,9 @@ def ui(qtbot, tmp_path):
|
||||
open_task(tasks[0])
|
||||
yield SimpleNamespace(window=window,service=service,store=store,tasks=tasks,
|
||||
calls=calls,settle=settle,open=open_task,data=data)
|
||||
settle();window.plan_panel.discard_all();window.close();store.close()
|
||||
if isValid(window):
|
||||
settle()
|
||||
if isValid(window):
|
||||
window.plan_panel.discard_all()
|
||||
window.close()
|
||||
store.close()
|
||||
@@ -201,7 +201,8 @@ def test_runtime_restart_discards_partial_protocol_and_utf8_characters(qtbot,tmp
|
||||
setattr(state.process,method,lambda *args:None)
|
||||
state.is_running=False
|
||||
state.data_root=tmp_path
|
||||
state.status=SimpleNamespace(setText=lambda *args:None,show=lambda:None)
|
||||
state.status=SimpleNamespace(setText=lambda *args:None,show=lambda:None,hide=lambda:None)
|
||||
state._show_official_loading=lambda root:None
|
||||
state.retry=SimpleNamespace(hide=lambda:None)
|
||||
state.timeout=SimpleNamespace(start=lambda *args:None)
|
||||
package=tmp_path/'node_modules/@deepseek-ai/dsh/package.json'
|
||||
@@ -264,7 +265,9 @@ def test_bad_line_does_not_block_following_local_runtime_handshake(qtbot):
|
||||
state,chunks=protocol_state(qtbot)
|
||||
loaded=[];ready=[]
|
||||
page=SimpleNamespace(allowed_port=None)
|
||||
state.web=SimpleNamespace(page=lambda:page,load=loaded.append)
|
||||
settings_calls=[]
|
||||
state.web=SimpleNamespace(page=lambda:page,load=loaded.append,
|
||||
settings=lambda:SimpleNamespace(setAttribute=lambda *args:settings_calls.append(args)))
|
||||
state.timeout=SimpleNamespace(stop=lambda:None)
|
||||
state.status=SimpleNamespace(hide=lambda:None)
|
||||
state._diagnosis_queue=[]
|
||||
@@ -273,4 +276,5 @@ def test_bad_line_does_not_block_following_local_runtime_handshake(qtbot):
|
||||
NativeHarnessView._stdout(state)
|
||||
assert state._started and ready==[True]
|
||||
assert page.allowed_port==12345
|
||||
assert settings_calls[-1][1] is False
|
||||
assert [url.toString()for url in loaded]==['http://127.0.0.1:12345/']
|
||||
Reference in new issue
Block a user