Skip to content

Commit

Permalink
fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Jan 7, 2025
1 parent e4fb1f9 commit d5ee7c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions crates/rattler_conda_types/src/match_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,12 +718,12 @@ mod tests {

#[test]
fn test_serialize_json_matchspec() {
let specs = ["mamba 1.0 py37_0",
"conda-forge::pytest[version=1.0, sha256=aaac4bc9c6916ecc0e33137431645b029ade22190c7144eead61446dcbcc6f97, md5=dede6252c964db3f3e41c7d30d07f6bf]",
let specs = ["mamba 1.0.* py37_0",
"conda-forge::pytest[version='==1.0', sha256=aaac4bc9c6916ecc0e33137431645b029ade22190c7144eead61446dcbcc6f97, md5=dede6252c964db3f3e41c7d30d07f6bf]",
"conda-forge/linux-64::pytest",
"conda-forge/linux-64::pytest[version=1.0]",
"conda-forge/linux-64::pytest[version=1.0, build=py37_0]",
"conda-forge/linux-64::pytest 1.2.3"];
"conda-forge/linux-64::pytest[version=1.0.*]",
"conda-forge/linux-64::pytest[version=1.0.*, build=py37_0]",
"conda-forge/linux-64::pytest ==1.2.3"];

assert_snapshot!(specs
.into_iter()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
source: crates/rattler_conda_types/src/match_spec/mod.rs
expression: "specs.into_iter().map(|s|\nMatchSpec::from_str(s,\nStrict).unwrap()).map(|s|\nserde_json::to_string(&s).unwrap()).format(\"\\n\").to_string()"
---
{"name":"mamba","version":"==1.0","build":"py37_0"}
{"name":"mamba","version":"1.0.*","build":"py37_0"}
{"name":"pytest","version":"==1.0","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"md5":"dede6252c964db3f3e41c7d30d07f6bf","sha256":"aaac4bc9c6916ecc0e33137431645b029ade22190c7144eead61446dcbcc6f97"}
{"name":"pytest","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"subdir":"linux-64"}
{"name":"pytest","version":"==1.0","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"subdir":"linux-64"}
{"name":"pytest","version":"==1.0","build":"py37_0","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"subdir":"linux-64"}
{"name":"pytest","version":"1.0.*","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"subdir":"linux-64"}
{"name":"pytest","version":"1.0.*","build":"py37_0","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"subdir":"linux-64"}
{"name":"pytest","version":"==1.2.3","channel":{"base_url":"https://conda.anaconda.org/conda-forge","name":"conda-forge"},"subdir":"linux-64"}

0 comments on commit d5ee7c4

Please sign in to comment.