Files
MoneyPrinterTurbo/test/services
kumain-inandHarry bf33010fe5 test: make three path assertions hold on Windows
Three tests fail on Windows although the code they cover works there:

- test_material.py::test_metadata_probe_failure_preserves_existing_cache
  expects _validate_video(str(cached_path)), but save_video() builds the
  path as f"{save_dir}/{video_id}.mp4", so on Windows the call carries a
  forward slash where str(Path) has a backslash. Compare the argument as
  a Path.
- test_utils_ffmpeg_check.py::test_normalizes_home_path_in_os_environ and
  ::test_encode_with_tilde_path set only HOME, but os.path.expanduser()
  reads USERPROFILE on Windows (HOME is ignored since Python 3.8), so "~"
  still expanded to the real profile: the first assertion failed and the
  MoviePy encode raised FileNotFoundError. Set USERPROFILE as well, and
  compare normalised paths, because ntpath.expanduser() keeps the "/" of
  "~/bin/ffmpeg".

POSIX runs are unaffected: posixpath.expanduser() ignores USERPROFILE and
normpath() leaves an already normal path alone. Neither file is in the
windows-smoke job, so CI did not see these failures.
2026-11-07 08:16:12 +08:00
..
2025-05-10 12:34:37 +08:00