labscript_utils.testing_utils

Classes

Any([types])

A class whose instances equal any object of the given type or tuple of types.

ThreadTestCase(*args, **kwargs)

Test case that runs tests in a new thread whilst providing a mainloop that allows running scripts in the current thread.

dotdict

dot.notation access to dictionary attributes

monkeypatch(obj, name, mocked_attr)

Context manager to temporarily monkeypatch an object attribute with some mocked attribute