DO NOT CALL THIS NOX SESSION DIRECTLY
(session, coverage, transport, crypto)
| 597 | @nox.parametrize("transport", ["zeromq", "tcp"]) |
| 598 | @nox.parametrize("crypto", [None, "m2crypto", "pycryptodome"]) |
| 599 | def 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) |
nothing calls this directly
no test coverage detected