def test_update_trigger_threshold(): camera = Camera(trigger_threshold=5) trigger = NNSuperpixelAboveThreshold(camera=camera) assert trigger.camera.trigger_threshold == 5 camera.update_trigger_threshold(6) assert trigger.camera.trigger_threshold == 6
def test_update_trigger_threshold(): camera = Camera(trigger_threshold=5) assert camera.trigger_threshold == 5 camera.update_trigger_threshold(6) assert camera.trigger_threshold == 6