MCPcopy Create free account
hub / github.com/astral-sh/ruff / cli_unsupported_python_version

Function cli_unsupported_python_version

crates/ty/tests/cli/python_environment.rs:1093–1111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1091
1092#[test]
1093fn cli_unsupported_python_version() -> anyhow::Result<()> {
1094 let case = CliTest::with_file("test.py", "")?;
1095
1096 assert_cmd_snapshot!(case.command().arg("--python-version=2.7"), @"
1097 success: false
1098 exit_code: 2
1099 ----- stdout -----
1100
1101 ----- stderr -----
1102 error: invalid value '2.7' for '--python-version <VERSION>'
1103 [possible values: 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15]
1104
1105 tip: a similar value exists: '3.7'
1106
1107 For more information, try '--help'.
1108 ");
1109
1110 Ok(())
1111}
1112
1113#[test]
1114fn config_file_python_setting_directory_with_no_site_packages() -> anyhow::Result<()> {

Callers

nothing calls this directly

Calls 1

OkClass · 0.85

Tested by

no test coverage detected