conftest.py 921 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. """
  3. tests.integration.shell.conftest
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. """
  6. from __future__ import absolute_import, print_function, unicode_literals
  7. import pytest
  8. @pytest.fixture
  9. def salt_cli(salt_factories, salt_minion, salt_master):
  10. return salt_factories.get_salt_cli(salt_master.config["id"])
  11. @pytest.fixture
  12. def salt_cp_cli(salt_factories, salt_minion, salt_master):
  13. return salt_factories.get_salt_cp_cli(salt_master.config["id"])
  14. @pytest.fixture
  15. def salt_key_cli(salt_factories, salt_minion, salt_master):
  16. return salt_factories.get_salt_key_cli(salt_master.config["id"])
  17. @pytest.fixture
  18. def salt_run_cli(salt_factories, salt_minion, salt_master):
  19. return salt_factories.get_salt_run_cli(salt_master.config["id"])
  20. @pytest.fixture
  21. def salt_call_cli(salt_factories, salt_minion, salt_master):
  22. return salt_factories.get_salt_call_cli(salt_minion.config["id"])