Пример #1
0
def test_frame_grabber_3_frames_even():
    frames = get_frames_to_grab(frame_count=10, max_frames=3)
    assert sorted(frames) == [0, 4, 9]
Пример #2
0
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]
Пример #3
0
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]
Пример #4
0
def test_frame_grabber_3_frames_odd():
    frames = get_frames_to_grab(frame_count=11, max_frames=3)
    assert sorted(frames) == [0, 5, 10]
Пример #5
0
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]
Пример #6
0
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]