From 61746984d160adb5470d5bcc680b6251261189b6 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 5 Mar 2026 13:01:10 -0600 Subject: [PATCH] formatting --- frigate/config/profile_manager.py | 1 - frigate/test/test_profiles.py | 16 +++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/frigate/config/profile_manager.py b/frigate/config/profile_manager.py index 656f27b42..81c7d19d8 100644 --- a/frigate/config/profile_manager.py +++ b/frigate/config/profile_manager.py @@ -1,6 +1,5 @@ """Profile manager for activating/deactivating named config profiles.""" -import json import logging from pathlib import Path from typing import Optional diff --git a/frigate/test/test_profiles.py b/frigate/test/test_profiles.py index a8ddf22b9..55bfd09fa 100644 --- a/frigate/test/test_profiles.py +++ b/frigate/test/test_profiles.py @@ -354,16 +354,12 @@ class TestProfilePersistence(unittest.TestCase): temp_path = f.name try: - with patch.object( - ProfileManager, "_persist_active_profile" - ) as mock_persist: - # Simulate writing - from pathlib import Path + from pathlib import Path - path = Path(temp_path) - path.write_text("armed") - loaded = path.read_text().strip() - assert loaded == "armed" + path = Path(temp_path) + path.write_text("armed") + loaded = path.read_text().strip() + assert loaded == "armed" finally: os.unlink(temp_path) @@ -374,8 +370,6 @@ class TestProfilePersistence(unittest.TestCase): temp_path = f.name try: - from pathlib import Path - with patch.object(type(PERSISTENCE_FILE), "exists", return_value=True): with patch.object( type(PERSISTENCE_FILE), "read_text", return_value=""