Present replay 3D with the cursor and open Analyze on a remembered video
Replay left the 3D pane on the rest mesh or a sparse overlay, and Analyze skipped the setup dialog unless the file was re-picked. Live Run no longer starts a chain on a video path. Verified with Studio tests for flush, overlay mask, Analyze open, live-video refusal, and locales.
This commit is contained in:
@@ -1509,6 +1509,33 @@ def test_the_source_picker_follows_the_view(make_window):
|
||||
_finish(window, stuck)
|
||||
|
||||
|
||||
def test_live_run_refuses_a_video_source(make_window, monkeypatch):
|
||||
"""Live acquires from a camera; a leftover video mode must not start a chain."""
|
||||
from orisys_app_shared.i18n import t
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
window = make_window(sensor_type="finger", source_mode="camera")
|
||||
try:
|
||||
window.brand_bar.btn_live.click()
|
||||
QApplication.processEvents()
|
||||
window.toolbar.set_video_path(r"C:\tmp\demo.mp4")
|
||||
window._set_source_mode("video")
|
||||
QApplication.processEvents()
|
||||
assert not window.toolbar.btn_run.isEnabled(), "Run is offered for a video file in live"
|
||||
called: list[str] = []
|
||||
monkeypatch.setattr(
|
||||
"orisys_app_shared.acquisition.sdk_worker.orisys_importable",
|
||||
lambda: called.append("import") or (True, ""),
|
||||
)
|
||||
window.toolbar.set_run_checked(True)
|
||||
window._start_run()
|
||||
assert called == [], "a video source reached the acquisition path"
|
||||
assert window.toolbar.btn_run.isChecked() is False
|
||||
assert t("toolbar.run_video_in_replay") in window.statusBar().currentMessage()
|
||||
finally:
|
||||
window.close()
|
||||
|
||||
|
||||
def test_the_nav_items_switch_the_main_window_layout(make_window):
|
||||
window, stuck = _running_window(make_window)
|
||||
for index in range(60):
|
||||
|
||||
Reference in New Issue
Block a user