1
- import dash
2
- from dash .dependencies import Input , Output
3
1
import dash_core_components as dcc
4
2
import dash_html_components as html
3
+ import dash
4
+ from dash .dependencies import Input , Output
5
5
6
6
7
7
def test_dash_callback_001 (dash_duo ):
@@ -19,15 +19,15 @@ def test_dash_callback_001(dash_duo):
19
19
)
20
20
21
21
@dash .callback (Output ("div-1" , "children" ), Input ("input" , "value" ))
22
- def update_1 (value ):
22
+ def update_1 (value ): # pylint: disable=unused-variable
23
23
return f"Input 1 - { value } "
24
24
25
25
@dash .callback (Output ("div-2" , "children" ), Input ("input" , "value" ))
26
- def update_2 (value ):
26
+ def update_2 (value ): # pylint: disable=unused-variable
27
27
return f"Input 2 - { value } "
28
28
29
29
@app .callback (Output ("div-3" , "children" ), Input ("input" , "value" ))
30
- def update_3 (value ):
30
+ def update_3 (value ): # pylint: disable=unused-variable
31
31
return f"Input 3 - { value } "
32
32
33
33
app .clientside_callback (
@@ -47,10 +47,10 @@ def update_3(value):
47
47
)
48
48
49
49
dash_duo .start_server (app )
50
- input = dash_duo .find_element ("#input" )
51
- input .send_keys ("dash.callback" )
50
+ input_element = dash_duo .find_element ("#input" )
51
+ input_element .send_keys ("dash.callback" )
52
52
dash_duo .wait_for_text_to_equal ("#div-1" , "Input 1 - dash.callback" )
53
53
dash_duo .wait_for_text_to_equal ("#div-2" , "Input 2 - dash.callback" )
54
54
dash_duo .wait_for_text_to_equal ("#div-3" , "Input 3 - dash.callback" )
55
55
dash_duo .wait_for_text_to_equal ("#div-4" , "Input 4 - dash.callback" )
56
- dash_duo .wait_for_text_to_equal ("#div-5" , "Input 5 - dash.callback" )
56
+ dash_duo .wait_for_text_to_equal ("#div-5" , "Input 5 - dash.callback" )
0 commit comments