pytest cloud tests session
(session, coverage)
| 965 | @nox.session(python=_PYTHON_VERSIONS, name="test-cloud") |
| 966 | @nox.parametrize("coverage", [False, True]) |
| 967 | def 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") |
nothing calls this directly
no test coverage detected