def test_dummy_receive(): device = Dummy() waiting_time = 0.2 inlet = device.get_stream_inlet(timeout=1) for i in range(3): time.sleep(waiting_time) data, timestamps = inlet.pull_chunk() receive_factor = len(data) / device.sfreq / waiting_time assert 0.5 < receive_factor < 1
def test_streaming(): device = Dummy() device.start_streaming()