formatting

This commit is contained in:
Josh Hawkins 2026-04-23 13:19:25 -05:00
parent d0e8620baa
commit baa0413382
3 changed files with 4 additions and 6 deletions

View File

@ -40,4 +40,4 @@ def ws_has_camera_access(ws: Any, camera_name: str, config: FrigateConfig) -> bo
if camera_name in allowed_cameras: if camera_name in allowed_cameras:
return True return True
return False return False

View File

@ -53,7 +53,5 @@ class TestWsHasCameraAccess(unittest.TestCase):
ws_has_camera_access(self._make_ws("viewer"), "birdseye", self.config) ws_has_camera_access(self._make_ws("viewer"), "birdseye", self.config)
) )
self.assertFalse( self.assertFalse(
ws_has_camera_access( ws_has_camera_access(self._make_ws("limited_user"), "birdseye", self.config)
self._make_ws("limited_user"), "birdseye", self.config )
)
)

View File

@ -26,4 +26,4 @@ class TestCameraMonitoringNotifications(unittest.TestCase):
self.assertEqual(client.send_push_notification.call_count, 1) self.assertEqual(client.send_push_notification.call_count, 1)
self.assertEqual( self.assertEqual(
client.send_push_notification.call_args.kwargs["user"], "allowed" client.send_push_notification.call_args.kwargs["user"], "allowed"
) )