@@ -6,7 +6,7 @@ use crate::CliTest;
66fn only_warnings ( ) -> anyhow:: Result < ( ) > {
77 let case = CliTest :: with_file ( "test.py" , r"print(x) # [unresolved-reference]" ) ?;
88
9- assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r"
9+ assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r### "
1010 success: true
1111 exit_code: 0
1212 ----- stdout -----
@@ -21,8 +21,7 @@ fn only_warnings() -> anyhow::Result<()> {
2121 Found 1 diagnostic
2222
2323 ----- stderr -----
24- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
25- " ) ;
24+ "### ) ;
2625
2726 Ok ( ( ) )
2827}
@@ -37,7 +36,7 @@ fn only_info() -> anyhow::Result<()> {
3736 "# ,
3837 ) ?;
3938
40- assert_cmd_snapshot ! ( case. command( ) , @r"
39+ assert_cmd_snapshot ! ( case. command( ) , @r### "
4140 success: true
4241 exit_code: 0
4342 ----- stdout -----
@@ -52,8 +51,7 @@ fn only_info() -> anyhow::Result<()> {
5251 Found 1 diagnostic
5352
5453 ----- stderr -----
55- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
56- " ) ;
54+ "### ) ;
5755
5856 Ok ( ( ) )
5957}
@@ -68,7 +66,7 @@ fn only_info_and_error_on_warning_is_true() -> anyhow::Result<()> {
6866 "# ,
6967 ) ?;
7068
71- assert_cmd_snapshot ! ( case. command( ) . arg( "--error-on-warning" ) , @r"
69+ assert_cmd_snapshot ! ( case. command( ) . arg( "--error-on-warning" ) , @r### "
7270 success: true
7371 exit_code: 0
7472 ----- stdout -----
@@ -83,8 +81,7 @@ fn only_info_and_error_on_warning_is_true() -> anyhow::Result<()> {
8381 Found 1 diagnostic
8482
8583 ----- stderr -----
86- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
87- " ) ;
84+ "### ) ;
8885
8986 Ok ( ( ) )
9087}
@@ -93,7 +90,7 @@ fn only_info_and_error_on_warning_is_true() -> anyhow::Result<()> {
9390fn no_errors_but_error_on_warning_is_true ( ) -> anyhow:: Result < ( ) > {
9491 let case = CliTest :: with_file ( "test.py" , r"print(x) # [unresolved-reference]" ) ?;
9592
96- assert_cmd_snapshot ! ( case. command( ) . arg( "--error-on-warning" ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r"
93+ assert_cmd_snapshot ! ( case. command( ) . arg( "--error-on-warning" ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r### "
9794 success: false
9895 exit_code: 1
9996 ----- stdout -----
@@ -108,8 +105,7 @@ fn no_errors_but_error_on_warning_is_true() -> anyhow::Result<()> {
108105 Found 1 diagnostic
109106
110107 ----- stderr -----
111- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
112- " ) ;
108+ "### ) ;
113109
114110 Ok ( ( ) )
115111}
@@ -127,7 +123,7 @@ fn no_errors_but_error_on_warning_is_enabled_in_configuration() -> anyhow::Resul
127123 ) ,
128124 ] ) ?;
129125
130- assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r"
126+ assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r### "
131127 success: false
132128 exit_code: 1
133129 ----- stdout -----
@@ -142,8 +138,7 @@ fn no_errors_but_error_on_warning_is_enabled_in_configuration() -> anyhow::Resul
142138 Found 1 diagnostic
143139
144140 ----- stderr -----
145- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
146- " ) ;
141+ "### ) ;
147142
148143 Ok ( ( ) )
149144}
@@ -158,7 +153,7 @@ fn both_warnings_and_errors() -> anyhow::Result<()> {
158153 "# ,
159154 ) ?;
160155
161- assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r"
156+ assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r### "
162157 success: false
163158 exit_code: 1
164159 ----- stdout -----
@@ -183,8 +178,7 @@ fn both_warnings_and_errors() -> anyhow::Result<()> {
183178 Found 2 diagnostics
184179
185180 ----- stderr -----
186- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
187- " ) ;
181+ "### ) ;
188182
189183 Ok ( ( ) )
190184}
@@ -199,7 +193,7 @@ fn both_warnings_and_errors_and_error_on_warning_is_true() -> anyhow::Result<()>
199193 "### ,
200194 ) ?;
201195
202- assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) . arg( "--error-on-warning" ) , @r"
196+ assert_cmd_snapshot ! ( case. command( ) . arg( "--warn" ) . arg( "unresolved-reference" ) . arg( "--error-on-warning" ) , @r### "
203197 success: false
204198 exit_code: 1
205199 ----- stdout -----
@@ -224,8 +218,7 @@ fn both_warnings_and_errors_and_error_on_warning_is_true() -> anyhow::Result<()>
224218 Found 2 diagnostics
225219
226220 ----- stderr -----
227- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
228- " ) ;
221+ "### ) ;
229222
230223 Ok ( ( ) )
231224}
@@ -240,7 +233,7 @@ fn exit_zero_is_true() -> anyhow::Result<()> {
240233 "# ,
241234 ) ?;
242235
243- assert_cmd_snapshot ! ( case. command( ) . arg( "--exit-zero" ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r"
236+ assert_cmd_snapshot ! ( case. command( ) . arg( "--exit-zero" ) . arg( "--warn" ) . arg( "unresolved-reference" ) , @r### "
244237 success: true
245238 exit_code: 0
246239 ----- stdout -----
@@ -265,8 +258,7 @@ fn exit_zero_is_true() -> anyhow::Result<()> {
265258 Found 2 diagnostics
266259
267260 ----- stderr -----
268- WARN ty is pre-release software and not ready for production use. Expect to encounter bugs, missing features, and fatal errors.
269- " ) ;
261+ "### ) ;
270262
271263 Ok ( ( ) )
272264}
0 commit comments