@@ -332,7 +332,7 @@ def test_dashboard_handles_incorrect_query_header(tmp_path, caplog):
332
332
ws = create_autospec (WorkspaceClient )
333
333
334
334
# Typo is on purpose
335
- query = f "-- --widh 6 --height 3 \n SELECT 82917019218921 AS big_number_needs_big_widget"
335
+ query = "-- --widh 6 --height 3 \n SELECT 82917019218921 AS big_number_needs_big_widget"
336
336
with (tmp_path / "counter.sql" ).open ("w" ) as f :
337
337
f .write (query )
338
338
@@ -349,14 +349,14 @@ def test_dashboard_handles_incorrect_query_header(tmp_path, caplog):
349
349
@pytest .mark .parametrize (
350
350
"query" ,
351
351
[
352
- f "-- --height 5\n SELECT 1 AS count -- --width 6" ,
353
- f "-- --height 5\n SELECT 1 AS count\n -- --width 6" ,
354
- f "-- --height 5\n SELECT 1 AS count\n /* --width 6 */" ,
355
- f "-- --height 5\n -- --width 6\n SELECT 1 AS count" ,
356
- f "-- --height 5\n /* --width 6 */\n SELECT 1 AS count" ,
357
- f "/* --height 5*/\n /* --width 6 */\n SELECT 1 AS count" ,
358
- f "/* --height 5*/\n -- --width 6 */\n SELECT 1 AS count" ,
359
- ]
352
+ "-- --height 5\n SELECT 1 AS count -- --width 6" ,
353
+ "-- --height 5\n SELECT 1 AS count\n -- --width 6" ,
354
+ "-- --height 5\n SELECT 1 AS count\n /* --width 6 */" ,
355
+ "-- --height 5\n -- --width 6\n SELECT 1 AS count" ,
356
+ "-- --height 5\n /* --width 6 */\n SELECT 1 AS count" ,
357
+ "/* --height 5*/\n /* --width 6 */\n SELECT 1 AS count" ,
358
+ "/* --height 5*/\n -- --width 6 */\n SELECT 1 AS count" ,
359
+ ],
360
360
)
361
361
def test_dashboard_ignores_comment_on_other_lines (tmp_path , query ):
362
362
ws = create_autospec (WorkspaceClient )
@@ -377,7 +377,7 @@ def test_dashboard_ignores_comment_on_other_lines(tmp_path, query):
377
377
[
378
378
"SELECT 1\n -- --width 6 --height 6" ,
379
379
"SELECT 1\n /*\n --width 6\n --height 6*/" ,
380
- ]
380
+ ],
381
381
)
382
382
def test_dashboard_ignores_non_header_comment (tmp_path , query ):
383
383
ws = create_autospec (WorkspaceClient )
0 commit comments