Skip to content

Commit 10b6056

Browse files
committed
fix: Add error field to PythonEnvironment instances in pyenv tests
1 parent 771d129 commit 10b6056

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

crates/pet-pyenv/tests/pyenv_test.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ fn find_pyenv_envs() {
221221
home.to_str().unwrap(),
222222
".pyenv/versions/3.9.9/bin/python",
223223
])]),
224+
error: None,
224225
};
225226
let expected_virtual_env = PythonEnvironment {
226227
display_name: None,
@@ -242,6 +243,7 @@ fn find_pyenv_envs() {
242243
home.to_str().unwrap(),
243244
".pyenv/versions/my-virtual-env/bin/python",
244245
])]),
246+
error: None,
245247
};
246248
let expected_3_12_1 = PythonEnvironment {
247249
display_name: None,
@@ -263,6 +265,7 @@ fn find_pyenv_envs() {
263265
home.to_str().unwrap(),
264266
".pyenv/versions/3.12.1/bin/python",
265267
])]),
268+
error: None,
266269
};
267270
let expected_3_13_dev = PythonEnvironment {
268271
display_name: None,
@@ -284,6 +287,7 @@ fn find_pyenv_envs() {
284287
home.to_str().unwrap(),
285288
".pyenv/versions/3.13-dev/bin/python",
286289
])]),
290+
error: None,
287291
};
288292
let expected_3_12_1a3 = PythonEnvironment {
289293
display_name: None,
@@ -305,6 +309,7 @@ fn find_pyenv_envs() {
305309
home.to_str().unwrap(),
306310
".pyenv/versions/3.12.1a3/bin/python",
307311
])]),
312+
error: None,
308313
};
309314
let expected_no_gil = PythonEnvironment {
310315
display_name: None,
@@ -326,6 +331,7 @@ fn find_pyenv_envs() {
326331
home.to_str().unwrap(),
327332
".pyenv/versions/nogil-3.9.10-1/bin/python",
328333
])]),
334+
error: None,
329335
};
330336
let expected_pypy = PythonEnvironment {
331337
display_name: None,
@@ -347,6 +353,7 @@ fn find_pyenv_envs() {
347353
home.to_str().unwrap(),
348354
".pyenv/versions/pypy3.9-7.3.15/bin/python",
349355
])]),
356+
error: None,
350357
};
351358

352359
let expected_conda_root = PythonEnvironment {
@@ -360,6 +367,7 @@ fn find_pyenv_envs() {
360367
manager: Some(expected_conda_manager.clone()),
361368
arch: Some(Architecture::X64),
362369
symlinks: Some(vec![conda_dir.join("bin").join("python")]),
370+
error: None,
363371
};
364372
let expected_conda_one = PythonEnvironment {
365373
display_name: None,
@@ -372,6 +380,7 @@ fn find_pyenv_envs() {
372380
manager: Some(expected_conda_manager.clone()),
373381
arch: None,
374382
symlinks: Some(vec![conda_dir.join("envs").join("one").join("python")]),
383+
error: None,
375384
};
376385
let expected_conda_two = PythonEnvironment {
377386
display_name: None,
@@ -384,6 +393,7 @@ fn find_pyenv_envs() {
384393
manager: Some(expected_conda_manager.clone()),
385394
symlinks: Some(vec![conda_dir.join("envs").join("two").join("python")]),
386395
arch: None,
396+
error: None,
387397
};
388398

389399
let mut expected_envs = vec![
@@ -453,6 +463,7 @@ fn resolve_pyenv_environment() {
453463
manager: Some(expected_manager.clone()),
454464
arch: None,
455465
symlinks: Some(vec![executable]),
466+
error: None,
456467
};
457468
let expected_virtual_env = PythonEnvironment {
458469
display_name: None,
@@ -474,6 +485,7 @@ fn resolve_pyenv_environment() {
474485
home.to_str().unwrap(),
475486
".pyenv/versions/my-virtual-env/bin/python",
476487
])]),
488+
error: None,
477489
};
478490

479491
// Resolve regular Python installs in Pyenv

0 commit comments

Comments
 (0)