def test_seek_from_start(playback: PyK4APlayback): # TODO fetch capture/data and validate time playback.open() playback.get_next_capture() playback.seek(playback.configuration["start_timestamp_offset_usec"], origin=SeekOrigin.BEGIN) capture = playback.get_next_capture() assert capture.color is not None with pytest.raises(EOFError): playback.get_previouse_capture()
def test_seek_from_end(playback: PyK4APlayback): # TODO fetch capture/data and validate time playback.open() playback.seek(0, origin=SeekOrigin.END) capture = playback.get_previouse_capture() assert capture.color is not None with pytest.raises(EOFError): playback.get_next_capture()
def test_get_previouse_capture(playback: PyK4APlayback): playback.open() playback.seek(0, origin=SeekOrigin.END) capture = playback.get_previouse_capture() assert capture is not None assert capture.depth is not None assert capture.color is not None assert capture._calibration is not None # Issue #81