mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-14 16:01:13 +03:00
formatting
This commit is contained in:
parent
d0e8620baa
commit
baa0413382
@ -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
|
||||||
|
|||||||
@ -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
|
)
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|||||||
@ -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"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user