From 24f1f3489a9376fb9a407f45b14951e56f64d9ba Mon Sep 17 00:00:00 2001 From: "Gareth J. Greenaway" Date: Wed, 15 Nov 2023 15:06:46 -0800 Subject: [PATCH] Running pre-commit manually --- tests/pytests/unit/modules/test_textfsm_mod.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/pytests/unit/modules/test_textfsm_mod.py b/tests/pytests/unit/modules/test_textfsm_mod.py index 4816ad0ca24..66fd6cf0846 100644 --- a/tests/pytests/unit/modules/test_textfsm_mod.py +++ b/tests/pytests/unit/modules/test_textfsm_mod.py @@ -8,7 +8,9 @@ import pytest import salt.modules.textfsm_mod as textfsm_mod from tests.support.mock import MagicMock, mock_open, patch -textfsm = pytest.importorskip("textfsm", reason="Install textfsm to be able to run this test.") +textfsm = pytest.importorskip( + "textfsm", reason="Install textfsm to be able to run this test." +) @pytest.fixture() @@ -442,7 +444,9 @@ juniper_version_template, .*, Juniper, sh[[ow]] ve[[rsion]]""" {"cp.cache_dir": MagicMock(return_value="/path/to/cache/")}, ): with patch.object( - clitable, "open", mock_open(read_data=mock_open_index) + textfsm_mod.clitable, + "open", + mock_open(read_data=mock_open_index), ): with patch.dict( textfsm_mod.__salt__,