Skip to content

Commit

Permalink
TST #14
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Dec 10, 2024
1 parent 101602d commit 0772245
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apsbss/apsbss.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def cmd_report(args):
from apstools.utils import listdevice # TODO: HEAVY addition for one function

bss = connect_epics(args.prefix)
listdevice(bss)
print(listdevice(bss))


def main():
Expand Down
8 changes: 8 additions & 0 deletions apsbss/tests/test_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
from ..servers import ProposalNotFound
from ..servers import RunNotFound
from ..servers import Server
from ._core import is_aps_workstation


def test_Server():
server = Server()
assert server is not None

if not is_aps_workstation():
return

assert 10 < len(server.beamlines) < 100
assert len(server.current_run) == 6
assert 10 < len(server.runs) < 100
Expand All @@ -35,6 +40,9 @@ def test_Server():

def test_Server_raises():
server = Server()

if not is_aps_workstation():
return

with pytest.raises(RunNotFound) as reason:
server.esafs(8, "1915-1")
Expand Down

0 comments on commit 0772245

Please sign in to comment.