Select the single active video profile through endpoint publication
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user