mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update tests/pytests/unit/modules/test_textfsm_mod.py
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
This commit is contained in:
parent
5832c07632
commit
93579ead06
1 changed files with 1 additions and 14 deletions
|
@ -8,20 +8,7 @@ import pytest
|
|||
import salt.modules.textfsm_mod as textfsm_mod
|
||||
from tests.support.mock import MagicMock, mock_open, patch
|
||||
|
||||
HAS_LIBS = True
|
||||
# pylint: disable=import-error,no-name-in-module,unused-import
|
||||
try:
|
||||
from textfsm import clitable
|
||||
except ImportError:
|
||||
HAS_LIBS = False
|
||||
# pylint: enable=import-error,no-name-in-module,unused-import
|
||||
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.skipif(
|
||||
not HAS_LIBS, 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()
|
||||
|
|
Loading…
Add table
Reference in a new issue