Skip to content

Commit

Permalink
[FIX] quadrupole test in dedicated module
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchnizer committed Nov 17, 2023
1 parent 479f1f6 commit 457463c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bact_mls_ophyd/devices/pp/quadrupoles.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,3 @@ class QuadrupolesCollection(Device, MultiplexerSetMixin):
_default_read_attrs = ("sel",)


if __name__ == "__main__":
qc = QuadrupolesCollection(name="qc")
if not qc.connected:
qc.wait_for_connection()

print(qc.read())
19 changes: 19 additions & 0 deletions tests/test_quadrupoles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from bact_mls_ophyd.devices.pp.quadrupoles import QuadrupolesCollection
import pytest


def create_quad_collection():
return QuadrupolesCollection(name="qc")


def test020_quadrupole_create():
create_quad_collection()


@pytest.mark.skip
def test020_quadrupole_load():
qc = create_quad_collection()
if not qc.connected:
qc.wait_for_connection()

print(qc.read())

0 comments on commit 457463c

Please sign in to comment.