Commit 08f7ab36 authored by Valentin Valls's avatar Valentin Valls
Browse files

Test initial ref from config

parent 64522f07
......@@ -436,6 +436,16 @@ class Ctrl14(BeaconObject):
return new_axis
def test_BeaconObject_config_obj_property__initial_ref(default_session):
ctrl = default_session.config.get("objectref1")
assert ctrl.ref.name == "robz"
def test_BeaconObject_config_obj_property__no_initial_ref(default_session):
ctrl = default_session.config.get("objectref2")
assert ctrl.ref is None
def test_BeaconObject_config_obj_property_setting_setter(beacon):
cfg = beacon.get("hello_ctrl3")
robz = beacon.get("robz")
......
- name: objectref1
plugin: bliss
package: bliss.controllers.test.objectref
class: ObjectRef
ref: $robz
- name: objectref2
plugin: bliss
package: bliss.controllers.test.objectref
class: ObjectRef
ref: !!null
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment