frame_num should return approximate values for Timecode-backed objects without warning.
()
| 436 | |
| 437 | |
| 438 | def test_timecode_frame_num_for_vfr(): |
| 439 | """frame_num should return approximate values for Timecode-backed objects without warning.""" |
| 440 | fps = Fraction(24000, 1001) |
| 441 | tc = FrameTimecode(timecode=Timecode(pts=1001, time_base=Fraction(1, 24000)), fps=fps) |
| 442 | # Should not raise or warn - just return the approximate frame number. |
| 443 | assert tc.frame_num == 1 |
| 444 | |
| 445 | |
| 446 | def test_arithmetic_with_bare_timecode(): |
nothing calls this directly
no test coverage detected