Skip to content

Commit

Permalink
Merge pull request #856 from BCDA-APS/855-unit-test
Browse files Browse the repository at this point in the history
repair failing unit test
  • Loading branch information
prjemian authored May 17, 2023
2 parents c3d0f94 + 27f96dc commit 199c178
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apstools/synApps/tests/test_epid.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import pytest

from ...tests import IOC
from ...tests import timed_pause
from ..epid import EpidRecord
from ..epid import Fb_EpidDatabase
from ..epid import Fb_EpidDatabaseHeaterSimulator


@pytest.mark.parametrize(
"support", [EpidRecord, Fb_EpidDatabase, Fb_EpidDatabaseHeaterSimulator],
"support",
[EpidRecord, Fb_EpidDatabase, Fb_EpidDatabaseHeaterSimulator],
)
def test_connection(support):
"""Connection test."""
Expand All @@ -28,6 +30,7 @@ def test_sim_heater(method, scan, Kp, Ki):
epid.wait_for_connection()

getattr(epid, method)()
timed_pause()
assert epid.scanning_rate.get() == scan
assert epid.proportional_gain.get() == Kp
assert epid.integral_gain.get() == Ki

0 comments on commit 199c178

Please sign in to comment.