Skip to content

Commit

Permalink
TST: add another assert to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Jun 27, 2022
1 parent e7a25aa commit 06f5cfa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ophyd/tests/test_areadetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,14 @@ class MyDetector(SingleTrigger, SimDetector):

det.stage()
st = det.trigger()
while not st.done:
time.sleep(.1)
st.wait()
reading = det.read()
doc_count = 0
for name, d in det.collect_asset_docs():
doc_count += 1
getattr(fs2, 'insert_{name}'.format(name=name))(**d)
assert doc_count > 0

det.describe()
det.unstage()

Expand Down

0 comments on commit 06f5cfa

Please sign in to comment.