Select the single active video profile through endpoint publication

This commit is contained in:
Mikei386
2026-09-29 13:16:41 +02:00
parent 7d6facaefa
commit e851b2f3ea
8 changed files with 33 additions and 12 deletions
+5
View File
@@ -27,6 +27,11 @@ class VideoTests(unittest.TestCase):
v=self.make(d);v.select('v');v.blockers=Mock(return_value=[]);v.load=Mock(side_effect=ValueError('busy'))
v.switch('video');self.wait(v)
self.assertEqual(v.status()['error'],'busy');self.assertEqual(v.scheduler.gpu_mode,'llm')
def test_clear_video_selection_persists(self):
with tempfile.TemporaryDirectory() as d:
v=self.make(d);v.select('v');v.select(None)
self.assertIsNone(v.selected);self.assertIsNone(self.make(d).selected)
with self.assertRaises(ValueError):v.switch('video')
def test_foreign_process_prevents_spawn(self):
with tempfile.TemporaryDirectory() as d,patch('video.probe',return_value=[{'processes':1}]),patch('video.subprocess.Popen') as spawn:
v=self.make(d)