@@ -164,8 +164,6 @@ def perform_mouseover(
164164def 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
235230def 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
277267def test_cyin006_mouseover_unhover (dash_duo ):
0 commit comments