fixed commetn from songxiao
This commit is contained in:
@@ -138,6 +138,11 @@ def test_both_parts_are_drawn_and_the_housing_can_be_hidden(gl_widget, qt_app):
|
||||
widget, renderer, _ = gl_widget
|
||||
assert set(renderer.part_ids) == {"sensing_surface", "housing"}
|
||||
|
||||
# ``DisplaySettings.housing_visible`` ships False (the frame dominated the
|
||||
# picture), so the visible case has to be asked for explicitly rather than
|
||||
# relying on the default — otherwise both renders below are the hidden one and
|
||||
# the comparison cannot mean anything.
|
||||
widget.set_settings(DisplaySettings(housing_visible=True))
|
||||
with_housing = _drawn(_render(widget, qt_app))
|
||||
assert with_housing.size, "nothing was drawn at all"
|
||||
widget.set_settings(DisplaySettings(housing_visible=False))
|
||||
|
||||
Reference in New Issue
Block a user