-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST #614 best efforts with no hardware or PVs
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |