From 69cad7b3c7fb1362fd4cb0d7fec5f74e15494067 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 21 Sep 2025 10:15:22 -0600 Subject: [PATCH] preen --- tests/unit_tests/test_espota2.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/unit_tests/test_espota2.py b/tests/unit_tests/test_espota2.py index 24b6a57b63..f7962ba5e7 100644 --- a/tests/unit_tests/test_espota2.py +++ b/tests/unit_tests/test_espota2.py @@ -9,7 +9,7 @@ import io from pathlib import Path import socket import struct -from unittest.mock import MagicMock, Mock, call, patch +from unittest.mock import Mock, call, patch import pytest from pytest import CaptureFixture @@ -86,15 +86,6 @@ def mock_run_ota_impl() -> Generator[Mock]: yield mock -@pytest.fixture -def mock_open_file() -> Generator[tuple[Mock, MagicMock]]: - """Mock file opening for testing.""" - with patch("builtins.open", create=True) as mock_open: - mock_file = MagicMock() - mock_open.return_value.__enter__.return_value = mock_file - yield mock_open, mock_file - - @pytest.fixture def mock_socket_constructor(mock_socket: Mock) -> Generator[Mock]: """Mock socket.socket constructor to return our mock socket."""