fixed platform not moving problem
This commit is contained in:
@@ -79,6 +79,16 @@ def test_the_default_preferences_file_matches_the_schema_shape():
|
||||
assert key in schema, f"preferences.default.json has an unknown key: {key}"
|
||||
|
||||
|
||||
def test_the_shipped_defaults_carry_the_controller_task_number():
|
||||
"""Re-initialisation names a task; if this key is missing every re-init is wrong."""
|
||||
from orisys_autocal.motion import DEFAULT_BAS_TASK
|
||||
|
||||
shipped = json.loads(
|
||||
(LOCALES.parent / "preferences.default.json").read_text(encoding="utf-8")
|
||||
)
|
||||
assert shipped["bas_task"] == DEFAULT_BAS_TASK == 4
|
||||
|
||||
|
||||
def _walk(node, prefix: str = ""):
|
||||
for key, value in node.items():
|
||||
path = f"{prefix}{key}"
|
||||
|
||||
Reference in New Issue
Block a user