@@ -9,54 +9,54 @@ def test_rdarp001_add_receive_props(dash_duo):
9
9
[
10
10
AddPropsComponent (
11
11
ReceivePropsComponent (
12
- id = ' test-receive1' ,
13
- text = ' receive component1' ,
12
+ id = " test-receive1" ,
13
+ text = " receive component1" ,
14
14
),
15
- id = ' test-add'
15
+ id = " test-add" ,
16
16
),
17
17
ReceivePropsComponent (
18
- id = ' test-receive2' ,
19
- text = ' receive component2' ,
18
+ id = " test-receive2" ,
19
+ text = " receive component2" ,
20
20
),
21
21
html .Button (
22
- ' load no pass props' ,
23
- id = ' load-no-pass-props' ,
22
+ " load no pass props" ,
23
+ id = " load-no-pass-props" ,
24
24
),
25
- html .Pre (' load-no-pass-props-output' ),
26
- html .Div (id = ' load-no-pass-props-output' ),
25
+ html .Pre (" load-no-pass-props-output" ),
26
+ html .Div (id = " load-no-pass-props-output" ),
27
27
html .Button (
28
- ' load pass props' ,
29
- id = ' load-pass-props' ,
28
+ " load pass props" ,
29
+ id = " load-pass-props" ,
30
30
),
31
- html .Pre (' load-pass-props-output' ),
32
- html .Div (id = ' load-pass-props-output' )
31
+ html .Pre (" load-pass-props-output" ),
32
+ html .Div (id = " load-pass-props-output" ),
33
33
]
34
34
)
35
35
36
36
@app .callback (
37
- Output (' load-no-pass-props-output' , ' children' ),
38
- Input (' load-no-pass-props' , ' n_clicks' ),
37
+ Output (" load-no-pass-props-output" , " children" ),
38
+ Input (" load-no-pass-props" , " n_clicks" ),
39
39
)
40
40
def load_no_pass_props (n_clicks ):
41
41
if n_clicks :
42
42
return ReceivePropsComponent (
43
- id = ' test-receive-no-pass' ,
44
- text = ' receive component no pass' ,
43
+ id = " test-receive-no-pass" ,
44
+ text = " receive component no pass" ,
45
45
)
46
46
return no_update
47
47
48
48
@app .callback (
49
- Output (' load-pass-props-output' , ' children' ),
50
- Input (' load-pass-props' , ' n_clicks' ),
49
+ Output (" load-pass-props-output" , " children" ),
50
+ Input (" load-pass-props" , " n_clicks" ),
51
51
)
52
52
def load_pass_props (n_clicks ):
53
53
if n_clicks :
54
54
return AddPropsComponent (
55
55
ReceivePropsComponent (
56
- id = ' test-receive-pass' ,
57
- text = ' receive component pass' ,
56
+ id = " test-receive-pass" ,
57
+ text = " receive component pass" ,
58
58
),
59
- id = ' test-add-pass'
59
+ id = " test-add-pass" ,
60
60
)
61
61
return no_update
62
62
@@ -66,7 +66,9 @@ def load_pass_props(n_clicks):
66
66
67
67
clicker_no_pass = dash_duo .wait_for_element ("#load-no-pass-props" )
68
68
clicker_no_pass .click ()
69
- dash_duo .wait_for_text_to_equal ("#test-receive-no-pass" , "receive component no pass" )
69
+ dash_duo .wait_for_text_to_equal (
70
+ "#test-receive-no-pass" , "receive component no pass"
71
+ )
70
72
clicker_pass = dash_duo .wait_for_element ("#load-pass-props" )
71
73
clicker_pass .click ()
72
74
dash_duo .wait_for_text_to_equal ("#test-receive-pass" , "Element #test-add-pass pass" )
0 commit comments