| 1091 | |
| 1092 | #[test] |
| 1093 | fn 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] |
| 1114 | fn config_file_python_setting_directory_with_no_site_packages() -> anyhow::Result<()> { |