From 28c7e724e3a5519d652dc5f1354cb8b9a21c842b Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 2 Apr 2025 10:00:19 -0400 Subject: [PATCH] red_knot_ide: update snapshots This just adds an extra blank line. I think these tests were written against the new renderer before it was used by Red Knot's `main` function. Once I did that, I saw that it was missing a blank line, and so I added it to match the status quo. But that means these snapshots have become stale. So this commit updates them. --- crates/red_knot_ide/src/goto.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/red_knot_ide/src/goto.rs b/crates/red_knot_ide/src/goto.rs index 36c49fb7f2..3320fb4eb7 100644 --- a/crates/red_knot_ide/src/goto.rs +++ b/crates/red_knot_ide/src/goto.rs @@ -338,7 +338,7 @@ mod tests { "#, ); - assert_snapshot!(test.goto_type_definition(), @r###" + assert_snapshot!(test.goto_type_definition(), @r" info: lint:goto-type-definition: Type definition --> /main.py:3:17 | @@ -355,6 +355,7 @@ mod tests { 12 | a | ^ | + info: lint:goto-type-definition: Type definition --> /main.py:5:17 | @@ -373,7 +374,7 @@ mod tests { 12 | a | ^ | - "###); + "); } #[test] @@ -752,7 +753,7 @@ f(**kwargs) "#, ); - assert_snapshot!(test.goto_type_definition(), @r###" + assert_snapshot!(test.goto_type_definition(), @r" info: lint:goto-type-definition: Type definition --> stdlib/builtins.pyi:443:7 | @@ -770,6 +771,7 @@ f(**kwargs) 3 | a | ^ | + info: lint:goto-type-definition: Type definition --> stdlib/types.pyi:677:11 | @@ -786,7 +788,7 @@ f(**kwargs) 3 | a | ^ | - "###); + "); } fn goto_test(source: &str) -> GotoTest {