Skip to content

Commit

Permalink
refactor: moved pypi installation into its own module (#589)
Browse files Browse the repository at this point in the history
Refactored the pypi environment installation code into it's own module.

#601 depends on this.
  • Loading branch information
tdejager authored Jan 2, 2024
1 parent c2b6321 commit 527830b
Show file tree
Hide file tree
Showing 8 changed files with 540 additions and 536 deletions.
4 changes: 2 additions & 2 deletions src/cli/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mod tests {

#[test]
pub fn test_zsh_completion() {
let mut script = r#"
let script = r#"
(add)
_arguments "${_arguments_options[@]}" \
'--manifest-path=[The path to '\''pixi.toml'\'']:MANIFEST_PATH:_files' \
Expand Down Expand Up @@ -120,7 +120,7 @@ _arguments "${_arguments_options[@]}" \
;;
"#;
let result = replace_zsh_completion(&mut script);
let result = replace_zsh_completion(script);
insta::assert_snapshot!(result);
}

Expand Down
2 changes: 1 addition & 1 deletion src/cli/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ mod tests {
assert_eq!(read_file_content(&file_path), original_content);

// Scenario 4: Path is a folder not a file, give an error.
assert!(create_or_append_file(&dir.path(), template).is_err());
assert!(create_or_append_file(dir.path(), template).is_err());

dir.close().unwrap();
}
Expand Down
Loading

0 comments on commit 527830b

Please sign in to comment.