@@ -76,7 +76,7 @@ def test_complete(self) -> None:
76
76
reference = "test-diagnostic" ,
77
77
message = "Oh no!\n It broke. :(" ,
78
78
context = "Something went wrong\n very wrong." ,
79
- attention_stmt = "You did something wrong, which is what caused this error." ,
79
+ note_stmt = "You did something wrong, which is what caused this error." ,
80
80
hint_stmt = "Do it better next time, by trying harder." ,
81
81
)
82
82
@@ -100,7 +100,7 @@ def test_complete_color(self) -> None:
100
100
reference = "test-diagnostic" ,
101
101
message = "Oh no!\n It broke." ,
102
102
context = "Something went wrong\n very wrong." ,
103
- attention_stmt = "You did something wrong." ,
103
+ note_stmt = "You did something wrong." ,
104
104
hint_stmt = "Do it better next time, by trying harder." ,
105
105
)
106
106
@@ -127,7 +127,7 @@ def test_no_context(self) -> None:
127
127
reference = "test-diagnostic" ,
128
128
message = "Oh no!\n It broke. :(" ,
129
129
context = None ,
130
- attention_stmt = "You did something wrong, which is what caused this error." ,
130
+ note_stmt = "You did something wrong, which is what caused this error." ,
131
131
hint_stmt = "Do it better next time, by trying harder." ,
132
132
)
133
133
@@ -148,7 +148,7 @@ def test_no_note(self) -> None:
148
148
reference = "test-diagnostic" ,
149
149
message = "Oh no!\n It broke. :(" ,
150
150
context = "Something went wrong\n very wrong." ,
151
- attention_stmt = None ,
151
+ note_stmt = None ,
152
152
hint_stmt = "Do it better next time, by trying harder." ,
153
153
)
154
154
@@ -171,7 +171,7 @@ def test_no_hint(self) -> None:
171
171
reference = "test-diagnostic" ,
172
172
message = "Oh no!\n It broke. :(" ,
173
173
context = "Something went wrong\n very wrong." ,
174
- attention_stmt = "You did something wrong, which is what caused this error." ,
174
+ note_stmt = "You did something wrong, which is what caused this error." ,
175
175
hint_stmt = None ,
176
176
)
177
177
@@ -194,7 +194,7 @@ def test_no_context_no_hint(self) -> None:
194
194
reference = "test-diagnostic" ,
195
195
message = "Oh no!\n It broke. :(" ,
196
196
context = None ,
197
- attention_stmt = "You did something wrong, which is what caused this error." ,
197
+ note_stmt = "You did something wrong, which is what caused this error." ,
198
198
hint_stmt = None ,
199
199
)
200
200
@@ -214,7 +214,7 @@ def test_no_context_no_note(self) -> None:
214
214
reference = "test-diagnostic" ,
215
215
message = "Oh no!\n It broke. :(" ,
216
216
context = None ,
217
- attention_stmt = None ,
217
+ note_stmt = None ,
218
218
hint_stmt = "Do it better next time, by trying harder." ,
219
219
)
220
220
@@ -234,7 +234,7 @@ def test_no_hint_no_note(self) -> None:
234
234
reference = "test-diagnostic" ,
235
235
message = "Oh no!\n It broke. :(" ,
236
236
context = "Something went wrong\n very wrong." ,
237
- attention_stmt = None ,
237
+ note_stmt = None ,
238
238
hint_stmt = None ,
239
239
)
240
240
@@ -256,7 +256,7 @@ def test_no_hint_no_note_no_context(self) -> None:
256
256
message = "Oh no!\n It broke. :(" ,
257
257
context = None ,
258
258
hint_stmt = None ,
259
- attention_stmt = None ,
259
+ note_stmt = None ,
260
260
)
261
261
262
262
assert rendered_in_ascii (err ) == textwrap .dedent (
@@ -286,7 +286,7 @@ def test_complete(self) -> None:
286
286
reference = "test-diagnostic" ,
287
287
message = "Oh no!\n It broke. :(" ,
288
288
context = "Something went wrong\n very wrong." ,
289
- attention_stmt = "You did something wrong, which is what caused this error." ,
289
+ note_stmt = "You did something wrong, which is what caused this error." ,
290
290
hint_stmt = "Do it better next time, by trying harder." ,
291
291
)
292
292
@@ -309,7 +309,7 @@ def test_complete_color(self) -> None:
309
309
reference = "test-diagnostic" ,
310
310
message = "Oh no!\n It broke." ,
311
311
context = "Something went wrong\n very wrong." ,
312
- attention_stmt = "You did something wrong." ,
312
+ note_stmt = "You did something wrong." ,
313
313
hint_stmt = "Do it better next time, by trying harder." ,
314
314
)
315
315
@@ -335,7 +335,7 @@ def test_no_context(self) -> None:
335
335
reference = "test-diagnostic" ,
336
336
message = "Oh no!\n It broke. :(" ,
337
337
context = None ,
338
- attention_stmt = "You did something wrong, which is what caused this error." ,
338
+ note_stmt = "You did something wrong, which is what caused this error." ,
339
339
hint_stmt = "Do it better next time, by trying harder." ,
340
340
)
341
341
@@ -356,7 +356,7 @@ def test_no_note(self) -> None:
356
356
reference = "test-diagnostic" ,
357
357
message = "Oh no!\n It broke. :(" ,
358
358
context = "Something went wrong\n very wrong." ,
359
- attention_stmt = None ,
359
+ note_stmt = None ,
360
360
hint_stmt = "Do it better next time, by trying harder." ,
361
361
)
362
362
@@ -378,7 +378,7 @@ def test_no_hint(self) -> None:
378
378
reference = "test-diagnostic" ,
379
379
message = "Oh no!\n It broke. :(" ,
380
380
context = "Something went wrong\n very wrong." ,
381
- attention_stmt = "You did something wrong, which is what caused this error." ,
381
+ note_stmt = "You did something wrong, which is what caused this error." ,
382
382
hint_stmt = None ,
383
383
)
384
384
@@ -400,7 +400,7 @@ def test_no_context_no_hint(self) -> None:
400
400
reference = "test-diagnostic" ,
401
401
message = "Oh no!\n It broke. :(" ,
402
402
context = None ,
403
- attention_stmt = "You did something wrong, which is what caused this error." ,
403
+ note_stmt = "You did something wrong, which is what caused this error." ,
404
404
hint_stmt = None ,
405
405
)
406
406
@@ -420,7 +420,7 @@ def test_no_context_no_note(self) -> None:
420
420
reference = "test-diagnostic" ,
421
421
message = "Oh no!\n It broke. :(" ,
422
422
context = None ,
423
- attention_stmt = None ,
423
+ note_stmt = None ,
424
424
hint_stmt = "Do it better next time, by trying harder." ,
425
425
)
426
426
@@ -440,7 +440,7 @@ def test_no_hint_no_note(self) -> None:
440
440
reference = "test-diagnostic" ,
441
441
message = "Oh no!\n It broke. :(" ,
442
442
context = "Something went wrong\n very wrong." ,
443
- attention_stmt = None ,
443
+ note_stmt = None ,
444
444
hint_stmt = None ,
445
445
)
446
446
@@ -461,7 +461,7 @@ def test_no_hint_no_note_no_context(self) -> None:
461
461
message = "Oh no!\n It broke. :(" ,
462
462
context = None ,
463
463
hint_stmt = None ,
464
- attention_stmt = None ,
464
+ note_stmt = None ,
465
465
)
466
466
467
467
assert rendered (err ) == textwrap .dedent (
0 commit comments