@@ -41,7 +41,7 @@ def test_tbst001_get_cell(test):
4141 assert target .cell (0 , 0 ).get_text () == "0"
4242 target .paging .next .click ()
4343 assert target .cell (0 , 0 ).get_text () == "250"
44- assert len ( test .get_log_errors ()) == 0
44+ assert test .get_log_errors () == []
4545
4646
4747def test_tbst002_select_all_text (test ):
@@ -52,7 +52,7 @@ def test_tbst002_select_all_text(test):
5252 target .cell (0 , 1 ).click ()
5353
5454 assert target .cell (0 , 1 ).get_text () == test .get_selected_text ()
55- assert len ( test .get_log_errors ()) == 0
55+ assert test .get_log_errors () == []
5656
5757
5858# https://github.com/plotly/dash-table/issues/50
@@ -65,7 +65,7 @@ def test_tbst003_edit_on_enter(test):
6565 test .send_keys ("abc" + Keys .ENTER )
6666
6767 assert target .cell (249 , 0 ).get_text () == "abc"
68- assert len ( test .get_log_errors ()) == 0
68+ assert test .get_log_errors () == []
6969
7070
7171# https://github.com/plotly/dash-table/issues/107
@@ -78,7 +78,7 @@ def test_tbst004_edit_on_tab(test):
7878 test .send_keys ("abc" + Keys .TAB )
7979
8080 assert target .cell (249 , 0 ).get_text () == "abc"
81- assert len ( test .get_log_errors ()) == 0
81+ assert test .get_log_errors () == []
8282
8383
8484def test_tbst005_edit_last_row_on_click_outside (test ):
@@ -91,7 +91,7 @@ def test_tbst005_edit_last_row_on_click_outside(test):
9191 target .cell (248 , 0 ).click ()
9292
9393 assert target .cell (249 , 0 ).get_text () == "abc"
94- assert len ( test .get_log_errors ()) == 0
94+ assert test .get_log_errors () == []
9595
9696
9797# https://github.com/plotly/dash-table/issues/141
@@ -105,7 +105,7 @@ def test_tbst006_focused_arrow_left(test):
105105
106106 assert target .cell (249 , 1 ).get_text () == "abc"
107107 assert target .cell (249 , 0 ).is_focused ()
108- assert len ( test .get_log_errors ()) == 0
108+ assert test .get_log_errors () == []
109109
110110
111111# https://github.com/plotly/dash-table/issues/141
@@ -119,7 +119,7 @@ def test_tbst007_active_focused_arrow_right(test):
119119
120120 assert target .cell (249 , 0 ).get_text () == "abc"
121121 assert target .cell (249 , 1 ).is_focused ()
122- assert len ( test .get_log_errors ()) == 0
122+ assert test .get_log_errors () == []
123123
124124
125125# https://github.com/plotly/dash-table/issues/141
@@ -133,7 +133,7 @@ def test_tbst008_active_focused_arrow_up(test):
133133
134134 assert target .cell (249 , 0 ).get_text () == "abc"
135135 assert target .cell (248 , 0 ).is_focused ()
136- assert len ( test .get_log_errors ()) == 0
136+ assert test .get_log_errors () == []
137137
138138
139139# https://github.com/plotly/dash-table/issues/141
@@ -147,7 +147,7 @@ def test_tbst009_active_focused_arrow_down(test):
147147
148148 assert target .cell (249 , 0 ).get_text () == "abc"
149149 assert target .cell (249 , 0 ).is_focused ()
150- assert len ( test .get_log_errors ()) == 0
150+ assert test .get_log_errors () == []
151151
152152
153153def test_tbst010_active_with_dblclick (test ):
@@ -158,7 +158,7 @@ def test_tbst010_active_with_dblclick(test):
158158 target .cell (0 , 0 ).double_click ()
159159 assert target .cell (0 , 0 ).is_active ()
160160 assert target .cell (0 , 0 ).get_text () == test .get_selected_text ()
161- assert len ( test .get_log_errors ()) == 0
161+ assert test .get_log_errors () == []
162162
163163
164164def test_tbst011_delete_row (test ):
@@ -170,7 +170,7 @@ def test_tbst011_delete_row(test):
170170 target .row (0 ).delete ()
171171
172172 assert target .cell (0 , 0 ).get_text () == text01
173- assert len ( test .get_log_errors ()) == 0
173+ assert test .get_log_errors () == []
174174
175175
176176def test_tbst012_delete_sorted_row (test ):
@@ -185,7 +185,7 @@ def test_tbst012_delete_sorted_row(test):
185185 target .row (0 ).delete ()
186186
187187 assert target .cell (0 , 0 ).get_text () == text01
188- assert len ( test .get_log_errors ()) == 0
188+ assert test .get_log_errors () == []
189189
190190
191191def test_tbst013_select_row (test ):
@@ -196,7 +196,7 @@ def test_tbst013_select_row(test):
196196 target .row (0 ).select ()
197197
198198 assert target .row (0 ).is_selected ()
199- assert len ( test .get_log_errors ()) == 0
199+ assert test .get_log_errors () == []
200200
201201
202202def test_tbst014_selected_sorted_row (test ):
@@ -209,7 +209,7 @@ def test_tbst014_selected_sorted_row(test):
209209 target .row (0 ).select ()
210210
211211 assert target .row (0 ).is_selected ()
212- assert len ( test .get_log_errors ()) == 0
212+ assert test .get_log_errors () == []
213213
214214
215215def test_tbst015_selected_row_respects_sort (test ):
@@ -229,7 +229,7 @@ def test_tbst015_selected_row_respects_sort(test):
229229 target .column (rawDf .columns [0 ]).sort () # DESC -> None
230230
231231 assert target .row (0 ).is_selected ()
232- assert len ( test .get_log_errors ()) == 0
232+ assert test .get_log_errors () == []
233233
234234
235235def test_tbst016_delete_cell (test ):
@@ -242,7 +242,7 @@ def test_tbst016_delete_cell(test):
242242 test .send_keys (Keys .ENTER )
243243
244244 assert target .cell (0 , 1 ).get_text () == ""
245- assert len ( test .get_log_errors ()) == 0
245+ assert test .get_log_errors () == []
246246
247247
248248@pytest .mark .skip (reason = "https://github.com/plotly/dash-table/issues/700" )
@@ -255,7 +255,7 @@ def test_tbst017_delete_cell_updates_while_selected(test):
255255 test .send_keys (Keys .BACKSPACE )
256256
257257 assert target .cell (0 , 1 ).get_text () == ""
258- assert len ( test .get_log_errors ()) == 0
258+ assert test .get_log_errors () == []
259259
260260
261261def test_tbst018_delete_multiple_cells (test ):
@@ -273,7 +273,7 @@ def test_tbst018_delete_multiple_cells(test):
273273 for col in range (1 , 3 ):
274274 assert target .cell (row , col ).get_text () == ""
275275
276- assert len ( test .get_log_errors ()) == 0
276+ assert test .get_log_errors () == []
277277
278278
279279@pytest .mark .skip (reason = "https://github.com/plotly/dash-table/issues/700" )
@@ -292,7 +292,7 @@ def test_tbst019_delete_multiple_cells_while_selected(test):
292292 for col in range (1 , 3 ):
293293 assert target .cell (row , col ).get_text () == ""
294294
295- assert len ( test .get_log_errors ()) == 0
295+ assert test .get_log_errors () == []
296296
297297
298298def test_tbst020_sorted_table_delete_cell (test ):
@@ -308,7 +308,7 @@ def test_tbst020_sorted_table_delete_cell(test):
308308 test .send_keys (Keys .ENTER )
309309
310310 assert target .cell (0 , 1 ).get_text () == ""
311- assert len ( test .get_log_errors ()) == 0
311+ assert test .get_log_errors () == []
312312
313313
314314@pytest .mark .skip (reason = "https://github.com/plotly/dash-table/issues/700" )
@@ -324,7 +324,7 @@ def test_tbst021_sorted_table_delete_cell_updates_while_selected(test):
324324 test .send_keys (Keys .BACKSPACE )
325325
326326 assert target .cell (0 , 1 ).get_text () == ""
327- assert len ( test .get_log_errors ()) == 0
327+ assert test .get_log_errors () == []
328328
329329
330330def test_tbst022_sorted_table_delete_multiple_cells (test ):
@@ -345,7 +345,7 @@ def test_tbst022_sorted_table_delete_multiple_cells(test):
345345 for col in range (1 , 3 ):
346346 assert target .cell (row , col ).get_text () == ""
347347
348- assert len ( test .get_log_errors ()) == 0
348+ assert test .get_log_errors () == []
349349
350350
351351@pytest .mark .skip (reason = "https://github.com/plotly/dash-table/issues/700" )
@@ -367,4 +367,4 @@ def test_tbst023_sorted_table_delete_multiple_cells_while_selected(test):
367367 for col in range (1 , 3 ):
368368 assert target .cell (row , col ).get_text () == ""
369369
370- assert len ( test .get_log_errors ()) == 0
370+ assert test .get_log_errors () == []
0 commit comments