Skip to content

Commit ad689e3

Browse files
committed
Add test case for uv python list downloads
1 parent f86b23d commit ad689e3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

crates/uv/tests/it/python_list.rs

+27
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,30 @@ fn python_list_venv() {
134134
----- stderr -----
135135
");
136136
}
137+
138+
#[test]
139+
fn python_list_downloads() {
140+
let context: TestContext = TestContext::new_with_versions(&[]).with_filtered_python_keys();
141+
142+
// We show all interpreters
143+
uv_snapshot!(context.filters(), context.python_list().env_remove("UV_PYTHON_DOWNLOADS"), @r"
144+
success: true
145+
exit_code: 0
146+
----- stdout -----
147+
cpython-3.14.0a6+freethreaded-[PLATFORM] <download available>
148+
cpython-3.14.0a6-[PLATFORM] <download available>
149+
cpython-3.13.2+freethreaded-[PLATFORM] <download available>
150+
cpython-3.13.2-[PLATFORM] <download available>
151+
cpython-3.12.9-[PLATFORM] <download available>
152+
cpython-3.11.11-[PLATFORM] <download available>
153+
cpython-3.10.16-[PLATFORM] <download available>
154+
cpython-3.9.21-[PLATFORM] <download available>
155+
cpython-3.8.20-[PLATFORM] <download available>
156+
pypy-3.11.11-[PLATFORM] <download available>
157+
pypy-3.10.16-[PLATFORM] <download available>
158+
pypy-3.9.19-[PLATFORM] <download available>
159+
pypy-3.8.16-[PLATFORM] <download available>
160+
161+
----- stderr -----
162+
");
163+
}

0 commit comments

Comments
 (0)