Skip to content

Remove unused resource_roundtrip() from test suite? #805

@padraic-shafer

Description

@padraic-shafer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions