Common NTSC framerates should be detected from float values.
()
| 372 | |
| 373 | |
| 374 | def test_ntsc_framerate_detection(): |
| 375 | """Common NTSC framerates should be detected from float values.""" |
| 376 | assert framerate_to_fraction(23.976023976023978) == Fraction(24000, 1001) |
| 377 | assert framerate_to_fraction(29.97002997002997) == Fraction(30000, 1001) |
| 378 | assert framerate_to_fraction(59.94005994005994) == Fraction(60000, 1001) |
| 379 | assert framerate_to_fraction(119.88011988011988) == Fraction(120000, 1001) |
| 380 | assert framerate_to_fraction(24.0) == Fraction(24, 1) |
| 381 | assert framerate_to_fraction(30.0) == Fraction(30, 1) |
| 382 | assert framerate_to_fraction(60.0) == Fraction(60, 1) |
| 383 | assert framerate_to_fraction(25.0) == Fraction(25, 1) |
| 384 | |
| 385 | |
| 386 | def test_frame_timecode_converts_ntsc_float_fps(): |
nothing calls this directly
no test coverage detected