Long synthetic video for memory/FD leak stress testing. Checked in under tests/resources/ on the resources branch; encode locally with ffmpeg if missing (see scripts/encode_stress_video.sh or the plan).
()
| 55 | |
| 56 | @pytest.fixture |
| 57 | def long_video() -> str: |
| 58 | """Long synthetic video for memory/FD leak stress testing. |
| 59 | |
| 60 | Checked in under tests/resources/ on the resources branch; encode locally |
| 61 | with ffmpeg if missing (see scripts/encode_stress_video.sh or the plan). |
| 62 | """ |
| 63 | path = os.path.join(REPO_ROOT, "tests", "resources", "stress_15min.mp4") |
| 64 | if not os.path.exists(path): |
| 65 | pytest.skip( |
| 66 | "tests/resources/stress_15min.mp4 not present. Generate with: " |
| 67 | 'ffmpeg -f lavfi -i "testsrc2=duration=900:size=640x480:rate=30" ' |
| 68 | "-c:v libx264 -crf 30 -preset slow -pix_fmt yuv420p " |
| 69 | "tests/resources/stress_15min.mp4" |
| 70 | ) |
| 71 | return path |
| 72 | |
| 73 | |
| 74 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected