From 17704f712efd2ebce2178cae4901abaf44bb6527 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 21 Sep 2025 10:07:27 -0600 Subject: [PATCH] preen --- tests/unit_tests/test_espota2.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/unit_tests/test_espota2.py b/tests/unit_tests/test_espota2.py index cda5d8d222..e76bc99211 100644 --- a/tests/unit_tests/test_espota2.py +++ b/tests/unit_tests/test_espota2.py @@ -41,11 +41,8 @@ def mock_file() -> io.BytesIO: @pytest.fixture def mock_time(): """Mock time-related functions for consistent testing.""" - with ( - patch("time.sleep"), - patch("time.perf_counter", side_effect=[0, 1]), - ) as mocks: - yield mocks + with patch("time.sleep"), patch("time.perf_counter", side_effect=[0, 1]): + yield @pytest.fixture