Skip to content

Commit

Permalink
(#378) Fix test failures due to missing decorator parentheses. Add mi…
Browse files Browse the repository at this point in the history
…ssing pyright plugin to dependencies
  • Loading branch information
rtuck99 committed Jul 11, 2024
1 parent ae36a04 commit 546ab33
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dev = [
"psutil",
"pydata-sphinx-theme>=0.12",
"pyright",
"pyright_diff_quality_plugin @ git+https://github.com/DiamondLightSource/pyright_diff_quality_plugin.git",
"pytest",
"pytest-asyncio",
"pytest-cov",
Expand Down
10 changes: 5 additions & 5 deletions src/dodal/beamlines/i22.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def slits_3(
)


@skip_device
@skip_device()
def slits_4(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand Down Expand Up @@ -300,7 +300,7 @@ def panda1(
)


@skip_device
@skip_device()
def panda2(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand All @@ -315,7 +315,7 @@ def panda2(
)


@skip_device
@skip_device()
def panda3(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand All @@ -330,7 +330,7 @@ def panda3(
)


@skip_device
@skip_device()
def panda4(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand Down Expand Up @@ -366,7 +366,7 @@ def oav(
)


@skip_device
@skip_device()
def linkam(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> Linkam3:
Expand Down
10 changes: 5 additions & 5 deletions src/dodal/beamlines/p38.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def d3(


# Disconnected
@skip_device
@skip_device()
def d11(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> AravisDetector:
Expand Down Expand Up @@ -262,7 +262,7 @@ def undulator(
# Must find which PandA IOC(s) are compatible
# Must document what PandAs are physically connected to
# See: https://github.com/bluesky/ophyd-async/issues/284
@skip_device
@skip_device()
def panda1(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand All @@ -277,7 +277,7 @@ def panda1(
)


@skip_device
@skip_device()
def panda2(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand All @@ -292,7 +292,7 @@ def panda2(
)


@skip_device
@skip_device()
def panda3(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand All @@ -307,7 +307,7 @@ def panda3(
)


@skip_device
@skip_device()
def linkam(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> Linkam3:
Expand Down
8 changes: 4 additions & 4 deletions src/dodal/beamlines/p45.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def choppers(


# Disconnected
@skip_device
@skip_device()
def det(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> AravisDetector:
Expand All @@ -65,7 +65,7 @@ def det(


# Disconnected
@skip_device
@skip_device()
def diff(
wait_for_connection: bool = True, fake_with_ophyd_sim: bool = False
) -> AravisDetector:
Expand All @@ -84,7 +84,7 @@ def diff(
# Must find which PandA IOC(s) are compatible
# Must document what PandAs are physically connected to
# See: https://github.com/bluesky/ophyd-async/issues/284
@skip_device
@skip_device()
def panda1(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand All @@ -99,7 +99,7 @@ def panda1(
)


@skip_device
@skip_device()
def panda2(
wait_for_connection: bool = True,
fake_with_ophyd_sim: bool = False,
Expand Down

0 comments on commit 546ab33

Please sign in to comment.