video_monitor/tests/test_local_webcam.py
2026-09-06 21:05:03 +08:00

13 lines
513 B
Python

import unittest
from scripts import local_webcam as webcam
class LocalWebcamTests(unittest.TestCase):
def test_webcam_does_not_bootstrap_full_service_manager(self):
source = webcam.SCRIPT.read_text(encoding='utf-8')
self.assertNotIn('get_service_manager().start()', source)
self.assertNotIn('shell=True', source)
self.assertNotIn('ServiceLeaderLock()', source)
self.assertNotIn("mediaStartPath", source)
self.assertNotIn("subprocess.Popen([str(exe)", source)