Skip to content

Commit

Permalink
TST #614 best efforts with no hardware or PVs
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 10, 2022
1 parent 040c59e commit feddd63
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apstools/devices/tests/test_eurotherm_2216e.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
test the Eurotherm 2216e device support
Hardware is not available so test with best efforts
"""

from .. import eurotherm_2216e

IOC = "gp:"
PV_PREFIX = f"phony:{IOC}2216e:"


def test_device():
controller = eurotherm_2216e.Eurotherm2216e(
PV_PREFIX, name="controller", readback_pv="rb", setpoint_pv="w"
)
assert not controller.connected
assert controller.tolerance.get() == 1

cns = """
readback setpoint sensor
done target tolerance report_dmov_changes
mode power program_number
""".split()
assert sorted(controller.component_names) == sorted(cns)

0 comments on commit feddd63

Please sign in to comment.