Skip to content

NVR with realtime local object detection for IP cameras

Fix invalid escape sequences in RTSP password test (#23740)

Martin Weineltdd7e9f1bc58d
diff --git a/frigate/test/test_camera_pw.py b/frigate/test/test_camera_pw.py
index 0964f38bea..af4cecbd22 100644
--- a/frigate/test/test_camera_pw.py
+++ b/frigate/test/test_camera_pw.py
@@ -8,9 +8,7 @@ from frigate.util.builtin import clean_camera_user_pass, escape_special_characte
class TestUserPassCleanup(unittest.TestCase):
def setUp(self) -> None:
self.rtsp_with_pass = "rtsp://user:[email protected]:554/live"
- self.rtsp_with_special_pass = (
- "rtsp://user:password`~!@#$%^&*()-_;',.<>:\"\{\}\[\]@@192.168.0.2:554/live"
- )
+ self.rtsp_with_special_pass = "rtsp://user:password`~!@#$%^&*()-_;',.<>:\"\\{\\}\\[\\]@@192.168.0.2:554/live"
self.rtsp_no_pass = "rtsp://192.168.0.3:554/live"
def test_cleanup(self):