28
28
from tests .utils import test_async
29
29
30
30
31
- def test_async_cbsc001_simple_callback (dash_duo ):
31
+ def test_async_cbsc001_simple_callback (dash_duo , * args ):
32
32
if not test_async ():
33
33
return
34
34
lock = Lock ()
@@ -68,7 +68,7 @@ async def update_output(value):
68
68
assert dash_duo .get_logs () == []
69
69
70
70
71
- def test_async_cbsc002_callbacks_generating_children (dash_duo ):
71
+ def test_async_cbsc002_callbacks_generating_children (dash_duo , * args ):
72
72
"""Modify the DOM tree by adding new components in the callbacks."""
73
73
if not test_async ():
74
74
return
@@ -154,7 +154,7 @@ async def update_input(value):
154
154
assert dash_duo .get_logs () == [], "console is clean"
155
155
156
156
157
- def test_async_cbsc003_callback_with_unloaded_async_component (dash_duo ):
157
+ def test_async_cbsc003_callback_with_unloaded_async_component (dash_duo , * args ):
158
158
if not test_async ():
159
159
return
160
160
app = Dash ()
@@ -189,7 +189,7 @@ async def update_out(n_clicks):
189
189
assert dash_duo .get_logs () == []
190
190
191
191
192
- def test_async_cbsc004_callback_using_unloaded_async_component (dash_duo ):
192
+ def test_async_cbsc004_callback_using_unloaded_async_component (dash_duo , * args ):
193
193
if not test_async ():
194
194
return
195
195
app = Dash ()
@@ -322,7 +322,7 @@ async def set_out(opts):
322
322
strict = False ,
323
323
)
324
324
@pytest .mark .parametrize ("refresh" , [False , True ])
325
- def test_async_cbsc007_parallel_updates (refresh , dash_duo ):
325
+ def test_async_cbsc007_parallel_updates (refresh , dash_duo , * args ):
326
326
# This is a funny case, that seems to mostly happen with dcc.Location
327
327
# but in principle could happen in other cases too:
328
328
# A callback chain (in this case the initial hydration) is set to update a
@@ -377,7 +377,7 @@ async def set_path(n):
377
377
dash_duo .wait_for_text_to_equal ("#out" , '[{"a": "/2:a"}] - /2' )
378
378
379
379
380
- def test_async_cbsc008_wildcard_prop_callbacks (dash_duo ):
380
+ def test_async_cbsc008_wildcard_prop_callbacks (dash_duo , * args ):
381
381
if not test_async ():
382
382
return
383
383
lock = Lock ()
@@ -444,7 +444,7 @@ async def update_text(data):
444
444
assert dash_duo .get_logs () == []
445
445
446
446
447
- def test_async_cbsc009_callback_using_unloaded_async_component_and_graph (dash_duo ):
447
+ def test_async_cbsc009_callback_using_unloaded_async_component_and_graph (dash_duo , * args ):
448
448
if not test_async ():
449
449
return
450
450
app = Dash (__name__ )
@@ -489,7 +489,7 @@ async def content(n, d, v):
489
489
assert dash_duo .get_logs () == []
490
490
491
491
492
- def test_async_cbsc010_event_properties (dash_duo ):
492
+ def test_async_cbsc010_event_properties (dash_duo , * args ):
493
493
if not test_async ():
494
494
return
495
495
app = Dash (__name__ )
@@ -513,7 +513,7 @@ async def update_output(n_clicks):
513
513
assert call_count .value == 1
514
514
515
515
516
- def test_async_cbsc011_one_call_for_multiple_outputs_initial (dash_duo ):
516
+ def test_async_cbsc011_one_call_for_multiple_outputs_initial (dash_duo , * args ):
517
517
if not test_async ():
518
518
return
519
519
app = Dash (__name__ )
@@ -551,7 +551,7 @@ async def dynamic_output(*args):
551
551
assert dash_duo .get_logs () == []
552
552
553
553
554
- def test_async_cbsc012_one_call_for_multiple_outputs_update (dash_duo ):
554
+ def test_async_cbsc012_one_call_for_multiple_outputs_update (dash_duo , * args ):
555
555
if not test_async ():
556
556
return
557
557
app = Dash (__name__ , suppress_callback_exceptions = True )
@@ -603,7 +603,7 @@ async def dynamic_output(*args):
603
603
assert dash_duo .get_logs () == []
604
604
605
605
606
- def test_async_cbsc013_multi_output_out_of_order (dash_duo ):
606
+ def test_async_cbsc013_multi_output_out_of_order (dash_duo , * args ):
607
607
if not test_async ():
608
608
return
609
609
app = Dash (__name__ )
@@ -704,7 +704,7 @@ async def update_output(n1, t1, n2, t2):
704
704
assert call_count .value == 4
705
705
706
706
707
- def test_async_cbsc015_input_output_callback (dash_duo ):
707
+ def test_async_cbsc015_input_output_callback (dash_duo , * args ):
708
708
if not test_async ():
709
709
return
710
710
return
@@ -757,7 +757,7 @@ def test_async_cbsc015_input_output_callback(dash_duo):
757
757
# assert dash_duo.get_logs() == []
758
758
759
759
760
- def test_async_cbsc016_extra_components_callback (dash_duo ):
760
+ def test_async_cbsc016_extra_components_callback (dash_duo , * args ):
761
761
if not test_async ():
762
762
return
763
763
lock = Lock ()
@@ -818,7 +818,7 @@ def test_async_cbsc017_callback_directly_callable():
818
818
# assert update_output("my-value") == "returning my-value"
819
819
820
820
821
- def test_async_cbsc018_callback_ndarray_output (dash_duo ):
821
+ def test_async_cbsc018_callback_ndarray_output (dash_duo , * args ):
822
822
if not test_async ():
823
823
return
824
824
app = Dash (__name__ )
@@ -836,7 +836,7 @@ async def on_click(_):
836
836
assert dash_duo .get_logs () == []
837
837
838
838
839
- def test_async_cbsc019_callback_running (dash_duo ):
839
+ def test_async_cbsc019_callback_running (dash_duo , * args ):
840
840
if not test_async ():
841
841
return
842
842
lock = Lock ()
@@ -870,7 +870,7 @@ async def on_click(_):
870
870
dash_duo .wait_for_text_to_equal ("#running" , "off" )
871
871
872
872
873
- def test_async_cbsc020_callback_running_non_existing_component (dash_duo ):
873
+ def test_async_cbsc020_callback_running_non_existing_component (dash_duo , * args ):
874
874
if not test_async ():
875
875
return
876
876
lock = Lock ()
@@ -907,7 +907,7 @@ async def on_click(_):
907
907
dash_duo .wait_for_text_to_equal ("#output" , "done" )
908
908
909
909
910
- def test_async_cbsc021_callback_running_non_existing_component (dash_duo ):
910
+ def test_async_cbsc021_callback_running_non_existing_component (dash_duo , * args ):
911
911
if not test_async ():
912
912
return
913
913
lock = Lock ()
0 commit comments