Beispiel #1
0
def test_find_credits_frame_range_false(outro_file):
    start, end = credits.find_credits(outro_file,
                                      offset=3,
                                      frame_range=False,
                                      check=7)
    assert math.floor(start) == 3
    assert math.floor(end) == 3
Beispiel #2
0
def test_find_credits(outro_file):
    start, end = credits.find_credits(outro_file, frame_range=True, check=9999, method='normal')
    assert math.floor(start) in (3.0, 4.0)
    assert math.floor(end) in (57, 58, 59)
Beispiel #3
0
def test_find_credits(outro_file):
    start, end = credits.find_credits(outro_file, frame_range=True, check=9999)
    assert math.floor(start) == 4.0
    assert math.floor(end) == 58