Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repair failing unit test #856

Merged
merged 1 commit into from
May 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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