Skip to content

Commit

Permalink
Update insta snapshots (#14366)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Nov 15, 2024
1 parent 81e5830 commit c847cad
Show file tree
Hide file tree
Showing 2,595 changed files with 3,052 additions and 2,578 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,11 @@ foo: 3.8- # trailing comment
";
let parsed_versions = TypeshedVersions::from_str(VERSIONS).unwrap();
assert_eq!(parsed_versions.len(), 3);
assert_snapshot!(parsed_versions.to_string(), @r###"
assert_snapshot!(parsed_versions.to_string(), @r"
bar: 2.7-3.10
bar.baz: 3.1-3.9
foo: 3.8-
"###
"
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/ruff/src/version.rs
expression: version
snapshot_kind: text
---
0.0.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/ruff/src/version.rs
expression: version
snapshot_kind: text
---
0.0.0 (53b0f5d92 2023-10-19)
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: crates/ruff/src/version.rs
expression: version
snapshot_kind: text
---
0.0.0+24 (53b0f5d92 2023-10-19)
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/ruff/src/version.rs
expression: version
snapshot_kind: text
---
{
"version": "0.0.0",
Expand Down
8 changes: 4 additions & 4 deletions crates/ruff/tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const BIN_NAME: &str = "ruff";
#[test]
fn lint_select() {
assert_cmd_snapshot!(
Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select"), @r###"
Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select"), @r#"
success: true
exit_code: 0
----- stdout -----
Expand All @@ -29,14 +29,14 @@ fn lint_select() {
```
----- stderr -----
"###
"#
);
}

#[test]
fn lint_select_json() {
assert_cmd_snapshot!(
Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select").arg("--output-format").arg("json"), @r###"
Command::new(get_cargo_bin(BIN_NAME)).arg("config").arg("lint.select").arg("--output-format").arg("json"), @r##"
success: true
exit_code: 0
----- stdout -----
Expand All @@ -50,6 +50,6 @@ fn lint_select_json() {
}
----- stderr -----
"###
"##
);
}
Loading

0 comments on commit c847cad

Please sign in to comment.