mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Running pre-commit manually
This commit is contained in:
parent
198395f263
commit
24f1f3489a
1 changed files with 6 additions and 2 deletions
|
@ -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__,
|
||||
|
|
Loading…
Add table
Reference in a new issue