Merge branch 'main' of ssh://892887cvmk08.aicp.io:24928/orisys-tech/orisys-app
This commit is contained in:
@@ -57,6 +57,7 @@ def test_the_pane_holds_a_legend_and_no_settings(panel):
|
||||
panel.deform_check,
|
||||
panel.gain_spin,
|
||||
panel.flow_threshold_spin,
|
||||
panel.depth_threshold_spin,
|
||||
panel.scale_combo,
|
||||
panel.depth_adaptive_check,
|
||||
panel.fps_combo,
|
||||
@@ -107,6 +108,14 @@ def test_adaptive_depth_scale_round_trips_through_the_dialog(panel):
|
||||
assert panel.settings().depth_scale_adaptive is False
|
||||
|
||||
|
||||
def test_depth_threshold_round_trips_through_the_dialog(panel):
|
||||
from orisys_app_shared.scene3d.contracts import DisplaySettings
|
||||
|
||||
panel.apply_settings(DisplaySettings(depth_threshold=0.025))
|
||||
assert panel.depth_threshold_spin.value() == pytest.approx(0.025)
|
||||
assert panel.settings().depth_threshold == pytest.approx(0.025)
|
||||
|
||||
|
||||
def test_arrow_threshold_round_trips_and_feeds_the_shared_policy(panel):
|
||||
"""The threshold the dialog writes is the one both views sample with."""
|
||||
from orisys_app_shared.scene3d.contracts import DisplaySettings
|
||||
|
||||
Reference in New Issue
Block a user