Removed unnecessary ModuleNotFound

This commit is contained in:
Meghann Cunningham 2023-01-16 20:38:50 +00:00 committed by Megan Wilhite
parent 1375b85cba
commit 684b584623

View file

@ -321,7 +321,7 @@ try:
from junit_xml import TestCase, TestSuite
HAS_JUNIT = True
except (ImportError, ModuleNotFoundError):
except ImportError:
HAS_JUNIT = False
@ -354,10 +354,8 @@ def run_test(**kwargs):
:param keyword arg test:
CLI Example:
.. code-block:: bash
salt '*' saltcheck.run_test
@ -382,10 +380,8 @@ def state_apply(state_name, **kwargs):
Reference the :py:func:`state.apply <salt.modules.state.apply>` module documentation for arguments and usage options
CLI Example:
.. code-block:: bash
salt '*' saltcheck.state_apply postfix
@ -411,10 +407,8 @@ def report_highstate_tests(saltenv=None):
Report on tests for states assigned to the minion through highstate.
Quits with the exit code for the number of missing tests.
CLI Example:
.. code-block:: bash
salt '*' saltcheck.report_highstate_tests
@ -460,10 +454,8 @@ def run_state_tests(
:param bool only_fails: boolean to only print failure results
:param bool junit: boolean to print results in junit format
CLI Example:
.. code-block:: bash
salt '*' saltcheck.run_state_tests postfix,common
@ -564,10 +556,8 @@ def run_highstate_tests(saltenv=None, only_fails=False, junit=False):
:param bool only_fails: boolean to only print failure results
:param bool junit: boolean to print results in junit format
CLI Example:
.. code-block:: bash
salt '*' saltcheck.run_highstate_tests