def d_sampled_v_a_parser(): sensor_queue = Mock() sensor_queue.put_nowait = Mock() parser = DownSampledVoltsAmpsParser( None, sensor_queue, None, delta_v=delta_v, delta_a=delta_a, buffer=10 ) return parser
def dict_parser(): sensor_queue = Mock() sensor_queue.put_nowait = Mock() dict_parser = DictParser(None, sensor_queue, SENSOR_PREFIX) return dict_parser
def fake_volt_amps_parser(): sensor_queue = Mock() sensor_queue.put_nowait = Mock() parser = VoltAmpsIrParser(None, sensor_queue, None) return parser
def _parser(sensor_prefix=None): sensor_queue = Mock() sensor_queue.put_nowait = Mock() parser = BooleanParser(None, sensor_queue, sensor_prefix=sensor_prefix) return parser