def test_frame_grabber_3_frames_even(): frames = get_frames_to_grab(frame_count=10, max_frames=3) assert sorted(frames) == [0, 4, 9]
def test_frame_grabber_6_frames_odd(): frames = get_frames_to_grab(frame_count=11, max_frames=6) assert sorted(frames) == [0, 2, 4, 6, 8, 10]
def test_frame_grabber_4_frames_odd(): frames = get_frames_to_grab(frame_count=11, max_frames=4) assert sorted(frames) == [0, 3, 7, 10]
def test_frame_grabber_3_frames_odd(): frames = get_frames_to_grab(frame_count=11, max_frames=3) assert sorted(frames) == [0, 5, 10]
def test_frame_grabber_6_frames_even(): frames = get_frames_to_grab(frame_count=10, max_frames=6) assert sorted(frames) == [0, 2, 4, 5, 7, 9]
def test_frame_grabber_4_frames_even(): frames = get_frames_to_grab(frame_count=10, max_frames=4) assert sorted(frames) == [0, 3, 6, 9]