This is not a test, and the function is not called anywhere. This dead code should probably be removed. Or could someone clarify what functionality is intended to be tested here?
|
def resource_roundtrip(broker_factory, RE, hw): |
|
db = broker_factory() |
|
db2 = broker_factory() |
|
from ophyd.sim import NumpySeqHandler |
|
import copy |
|
db.prepare_hook = lambda name, doc: copy.deepcopy(dict(doc)) |
|
for spec in NumpySeqHandler.specs: |
|
db.reg.register_handler(spec, NumpySeqHandler) |
|
RE.subscribe(db.insert) |
|
RE.subscribe(lambda *x: L.append(x)) |
|
|
|
uid, = get_uids(RE(count([hw.img], num=7, delay=0.1))) |
|
|
|
for nd in db[-1].documents(): |
|
db2.insert(*nd) |
This is not a test, and the function is not called anywhere. This dead code should probably be removed. Or could someone clarify what functionality is intended to be tested here?
databroker/databroker/tests/test_broker.py
Lines 1124 to 1138 in 23071d5