MCPcopy Index your code
hub / github.com/saltstack/salt / test_parametrized

Function test_parametrized

noxfile.py:599–629  ·  view source on GitHub ↗

DO NOT CALL THIS NOX SESSION DIRECTLY

(session, coverage, transport, crypto)

Source from the content-addressed store, hash-verified

597@nox.parametrize("transport", ["zeromq", "tcp"])
598@nox.parametrize("crypto", [None, "m2crypto", "pycryptodome"])
599def test_parametrized(session, coverage, transport, crypto):
600 """
601 DO NOT CALL THIS NOX SESSION DIRECTLY
602 """
603 # Install requirements
604 if _install_requirements(session):
605
606 if crypto:
607 session_run_always(
608 session,
609 "pip",
610 "uninstall",
611 "-y",
612 "m2crypto",
613 "pycrypto",
614 "pycryptodome",
615 "pycryptodomex",
616 silent=True,
617 )
618 install_command = [
619 "--progress-bar=off",
620 "--constraint",
621 _get_pip_requirements_file(session, crypto=True),
622 ]
623 install_command.append(crypto)
624 session.install(*install_command, silent=PIP_INSTALL_SILENT)
625
626 cmd_args = [
627 f"--transport={transport}",
628 ] + session.posargs
629 _pytest(session, coverage=coverage, cmd_args=cmd_args)
630
631
632@nox.session(python=_PYTHON_VERSIONS)

Callers

nothing calls this directly

Calls 6

_install_requirementsFunction · 0.85
session_run_alwaysFunction · 0.85
_pytestFunction · 0.85
appendMethod · 0.45
installMethod · 0.45

Tested by

no test coverage detected