MCPcopy
hub / github.com/saltstack/salt / test_cloud

Function test_cloud

noxfile.py:967–990  ·  view source on GitHub ↗

pytest cloud tests session

(session, coverage)

Source from the content-addressed store, hash-verified

965@nox.session(python=_PYTHON_VERSIONS, name="test-cloud")
966@nox.parametrize("coverage", [False, True])
967def test_cloud(session, coverage):
968 """
969 pytest cloud tests session
970 """
971 pydir = _get_pydir(session)
972 if pydir == "py3.5":
973 session.error(
974 "Due to conflicting and unsupported requirements the cloud tests only run on Py3.6+"
975 )
976 # Install requirements
977 if _upgrade_pip_setuptools_and_wheel(session):
978 requirements_file = os.path.join(
979 "requirements", "static", "ci", pydir, "cloud.lock"
980 )
981
982 install_command = ["--progress-bar=off", "-r", requirements_file]
983 session.install(*install_command, silent=PIP_INSTALL_SILENT)
984
985 cmd_args = [
986 "--run-expensive",
987 "-k",
988 "cloud",
989 ] + session.posargs
990 _pytest(session, coverage=coverage, cmd_args=cmd_args)
991
992
993@nox.session(python=_PYTHON_VERSIONS, name="pytest-cloud")

Callers

nothing calls this directly

Calls 5

_get_pydirFunction · 0.85
_pytestFunction · 0.85
errorMethod · 0.45
installMethod · 0.45

Tested by

no test coverage detected