Skip to content

Commit 8dfd878

Browse files
committed
Fix tests
1 parent 58a03fd commit 8dfd878

File tree

13 files changed

+2
-10
lines changed

13 files changed

+2
-10
lines changed

native_locator/tests/conda_test.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn find_conda_exe_and_empty_envs() {
143143

144144
#[test]
145145
#[cfg(unix)]
146-
fn find_conda_from_custom_install_location() {
146+
fn find_conda_from_custom_install_locationxxx() {
147147
use crate::common::{create_test_environment, test_file_path};
148148
use python_finder::messaging::{EnvManager, EnvManagerType, PythonEnvironment};
149149
use python_finder::{conda, locator::Locator};
@@ -164,15 +164,7 @@ fn find_conda_from_custom_install_location() {
164164
)
165165
.unwrap();
166166

167-
let known = create_test_environment(
168-
HashMap::from([(
169-
"PATH".to_string(),
170-
conda_dir.clone().to_str().unwrap().to_string(),
171-
)]),
172-
Some(home),
173-
Vec::new(),
174-
None,
175-
);
167+
let known = create_test_environment(HashMap::new(), Some(home), Vec::new(), None);
176168

177169
let mut locator = conda::Conda::with(&known);
178170
let result = locator.find().unwrap();

native_locator/tests/unix/conda/user_home/anaconda3/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/conda_custom_install_path/user_home/some_location/anaconda3/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/conda_without_envs/user_home/anaconda3/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/pyenv/user_home/.pyenv/versions/anaconda-4.0.0/bin/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/pyenv/user_home/.pyenv/versions/anaconda3-2021.04/bin/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/pyenv/user_home/.pyenv/versions/mambaforge-4.10.1-4/bin/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/pyenv/user_home/.pyenv/versions/mambaforge/bin/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/pyenv/user_home/.pyenv/versions/miniconda-latest/bin/envs/.conda_envs_dir_test

Whitespace-only changes.

native_locator/tests/unix/pyenv/user_home/.pyenv/versions/miniconda3-3.10-22.11.1-1/bin/envs/.conda_envs_dir_test

Whitespace-only changes.

0 commit comments

Comments
 (0)