Skip to content

Commit 75e938e

Browse files
committed
lint changes to table scroll test
1 parent c5cd74b commit 75e938e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/dash-table/tests/selenium/test_scrolling.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,20 @@ def test_scrol002_edit_navigate(test, fixed_rows, fixed_columns, ops):
121121
test.send_keys("abc" + Keys.ENTER)
122122

123123
wait.until(lambda: target.cell(1, 3).is_selected(), 3)
124-
wait.until(lambda: -get_margin(test) == pytest.approx(fixed_width + get_scroll(test), abs=1), 3)
124+
wait.until(
125+
lambda: -get_margin(test)
126+
== pytest.approx(fixed_width + get_scroll(test), abs=1),
127+
3,
128+
)
125129

126130
# alignment is ok after navigating
127131
test.send_keys(Keys.ARROW_DOWN)
128132
test.send_keys(Keys.ARROW_RIGHT)
129133

130134
wait.until(lambda: target.cell(2, 4).is_selected(), 3)
131-
wait.until(lambda: -get_margin(test) == pytest.approx(fixed_width + get_scroll(test), abs=1), 3)
135+
wait.until(
136+
lambda: -get_margin(test)
137+
== pytest.approx(fixed_width + get_scroll(test), abs=1),
138+
3,
139+
)
132140
assert test.get_log_errors() == []

0 commit comments

Comments
 (0)