Fix python unit tests for extra sangaboard action and setting
This commit is contained in:
parent
274f698fab
commit
304fd6dfe3
1 changed files with 7 additions and 4 deletions
|
|
@ -603,10 +603,13 @@ def test_thing_description_equivalence(dummy_stage, mocker):
|
||||||
dummy_properties = set(dummy_td.properties.keys())
|
dummy_properties = set(dummy_td.properties.keys())
|
||||||
|
|
||||||
sanga_td = create_thing_without_server(SangaboardThing).thing_description()
|
sanga_td = create_thing_without_server(SangaboardThing).thing_description()
|
||||||
# Remove known extra actions
|
|
||||||
sanga_actions = list(sanga_td.actions.keys())
|
# Sangaboard has one extra action for calibrating z-motor direction. This is
|
||||||
sanga_actions = set(sanga_actions)
|
# handled in the webapp calibration wizard, and an extra setting for persisting it
|
||||||
sanga_properties = set(sanga_td.properties.keys())
|
sanga_extra_actions = {"calibrate_z_direction"}
|
||||||
|
sanga_extra_properties = {"z_axis_calibrated"}
|
||||||
|
sanga_actions = set(sanga_td.actions.keys()) - sanga_extra_actions
|
||||||
|
sanga_properties = set(sanga_td.properties.keys()) - sanga_extra_properties
|
||||||
|
|
||||||
assert sanga_actions == dummy_actions == base_actions
|
assert sanga_actions == dummy_actions == base_actions
|
||||||
assert sanga_properties == dummy_properties == base_properties
|
assert sanga_properties == dummy_properties == base_properties
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue