Commit 1bf294f0 authored by bliss administrator's avatar bliss administrator
Browse files

added tests for config references with default plugin

parent c9f77328
......@@ -54,3 +54,17 @@ def test_config_save(beacon):
rw_cfg2.save()
def test_references(beacon):
refs_cfg = beacon.get("refs_test")
m0 = beacon.get("m0")
s1hg = beacon.get("s1hg")
s1vo = beacon.get("s1vo")
assert refs_cfg['scan']['axis'].__repr__() == repr(m0)
assert refs_cfg['slits'][0]['axis'].__repr__() == repr(s1hg)
assert refs_cfg['slits'][0]['position'] == 0
assert refs_cfg['slits'][1]['axis'].__repr__() == repr(s1vo)
assert refs_cfg['slits'][1]['position'] == 1
assert refs_cfg['m0'].__repr__() == repr(m0)
plugin: default
name: refs_test
m0: $m0
slits:
- axis: $s1hg
position: 0
- axis: $s1vo
position: 1
scan:
axis: $m0
Supports Markdown
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