From c335cd51304107e2bc3ff519be4c1721c267569b Mon Sep 17 00:00:00 2001 From: saphid <4596216+saphid@users.noreply.github.com> Date: Mon, 28 Sep 2026 22:37:28 +1000 Subject: [PATCH] Fix media test portability and e2e discovery --- docs/testing.md | 2 +- tests/e2e/{test_media.py => test_media_transfer.py} | 0 tests/test_media.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename tests/e2e/{test_media.py => test_media_transfer.py} (100%) diff --git a/docs/testing.md b/docs/testing.md index d8f7020..9a35a34 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -153,7 +153,7 @@ Steam accepts. `tests/test_media.py` covers layout evidence and overrides, OU eye ordering, hardware-decoder command construction, malformed splats, stereo parallax and -fake-Frame library/process ownership. `tests/e2e/test_media.py` checks the real +fake-Frame library/process ownership. `tests/e2e/test_media_transfer.py` checks the real HTTP/SSH upload and library listing without pretending the fake renders VR. Real decode timings and captured stereo output are recorded in [vr-video.md](vr-video.md). Generated media only; no external player required. diff --git a/tests/e2e/test_media.py b/tests/e2e/test_media_transfer.py similarity index 100% rename from tests/e2e/test_media.py rename to tests/e2e/test_media_transfer.py diff --git a/tests/test_media.py b/tests/test_media.py index 4d441f1..3434b70 100644 --- a/tests/test_media.py +++ b/tests/test_media.py @@ -48,7 +48,7 @@ class Media(unittest.TestCase): self.assertIn(decoder, cmd) self.assertIn('-re', cmd) self.assertIn('pulse', cmd) - self.assertIn('/tmp/a file.mp4', cmd) + self.assertIn(str(Path('/tmp/a file.mp4')), cmd) with self.assertRaises(ValueError): player.decoder_command(Path('x.webm'), {'codec_name': 'vp9'}, 640, 480, False) cmd = player.decoder_command(Path('x.png'), {'codec_name': 'png'}, 640, 480, False, True)