1
0

test_idem.py 469 B

1234567891011121314151617
  1. """
  2. Integration tests for the idem execution module
  3. """
  4. from contextlib import contextmanager
  5. import pytest
  6. import salt.utils.idem as idem
  7. import salt.utils.path
  8. pytestmark = pytest.mark.skipif(not idem.HAS_POP[0], reason=idem.HAS_POP[1])
  9. @pytest.mark.skipif(not salt.utils.path.which("idem"), reason="idem is not installed")
  10. @contextmanager
  11. def test_exec(salt_call_cli):
  12. ret = salt_call_cli.run("--local", "idem.exec", "test.ping")
  13. assert ret.json is True