p='output/diagnosis.md' t=open(p).read() reps=[ ('That matches the request, so the aspect ratio stays.','This matches the request; keep the aspect ratio.'), ('Play back the MP4. Check the interview section, the in-picture subtitles, the audio near 00:00:42 and the 16:9 frame.','Play back the MP4: interview section, in-picture subtitles, audio near 00:00:42, 16:9 frame.'), ('Left at Sidecar only, the export would give an MP4 with no visible subtitles plus a separate .srt, so step 4 is needed.','Left at Sidecar only, the MP4 would have no visible subtitles, so step 4 is needed.'), ('- Whether the export completes and plays correctly.\n- Any panels not shown.','- Whether the export completes and plays correctly, and any panels not shown.'), ] for a,b in reps: assert a in t, a t=t.replace(a,b) open(p,'w').write(t)