Skip to content

Commit fb127dc

Browse files
committed
Fix lint issues
1 parent ee6fe79 commit fb127dc

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

tests/test_interactions.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ def perform_mouseover(
164164
def test_cyin001_dragging(dash_duo):
165165
init_pos, actions, _ = create_app(dash_duo)
166166

167-
drag_error = "Unable to drag Cytoscape nodes properly"
168-
169167
# View module docstring for more information about initial positions
170168
init_x, init_y = init_pos["Node 1"]
171169

@@ -225,11 +223,8 @@ def test_cyin003_clicking_edges(dash_duo):
225223
elem_tap = dash_duo.find_element("pre#tap-edge-json-output")
226224

227225
# Test clicking the edges
228-
for label in edges_positions.keys():
229-
assert (
230-
perform_clicking(dash_duo, *edges_positions[label], elem_tap, actions)
231-
== label
232-
)
226+
for label, positions in edges_positions.items():
227+
assert perform_clicking(dash_duo, *positions, elem_tap, actions) == label
233228

234229

235230
def test_cyin004_mouseover(dash_duo):
@@ -265,13 +260,8 @@ def test_cyin005_mouseover_edges(dash_duo):
265260
elem_mouseover = dash_duo.find_element("pre#mouseover-edge-data-json-output")
266261

267262
# Test mouseover the edges
268-
for label in edges_positions.keys():
269-
assert (
270-
perform_mouseover(
271-
dash_duo, *edges_positions[label], elem_mouseover, actions
272-
)
273-
== label
274-
)
263+
for label, positions in edges_positions.items():
264+
assert perform_mouseover(dash_duo, *positions, elem_mouseover, actions) == label
275265

276266

277267
def test_cyin006_mouseover_unhover(dash_duo):

0 commit comments

Comments
 (0)