6
6
import pytest
7
7
import shutil
8
8
import time
9
+ from flaky import flaky
9
10
10
11
from dash .testing .application_runners import import_app
11
12
import psutil
@@ -86,6 +87,7 @@ def setup_long_callback_app(manager_name, app_name):
86
87
os .environ .pop ("DISKCACHE_DIR" )
87
88
88
89
90
+ @flaky (max_runs = 3 )
89
91
def test_lcbc001_fast_input (dash_duo , manager ):
90
92
"""
91
93
Make sure that we settle to the correct final value when handling rapid inputs
@@ -107,6 +109,7 @@ def test_lcbc001_fast_input(dash_duo, manager):
107
109
assert dash_duo .get_logs () == []
108
110
109
111
112
+ @flaky (max_runs = 3 )
110
113
def test_lcbc002_long_callback_running (dash_duo , manager ):
111
114
with setup_long_callback_app (manager , "app2" ) as app :
112
115
dash_duo .start_server (app )
@@ -134,6 +137,7 @@ def test_lcbc002_long_callback_running(dash_duo, manager):
134
137
assert dash_duo .get_logs () == []
135
138
136
139
140
+ @flaky (max_runs = 3 )
137
141
def test_lcbc003_long_callback_running_cancel (dash_duo , manager ):
138
142
lock = Lock ()
139
143
@@ -174,6 +178,7 @@ def test_lcbc003_long_callback_running_cancel(dash_duo, manager):
174
178
assert dash_duo .get_logs () == []
175
179
176
180
181
+ @flaky (max_runs = 3 )
177
182
def test_lcbc004_long_callback_progress (dash_duo , manager ):
178
183
with setup_long_callback_app (manager , "app4" ) as app :
179
184
dash_duo .start_server (app )
@@ -207,6 +212,7 @@ def test_lcbc004_long_callback_progress(dash_duo, manager):
207
212
assert dash_duo .get_logs () == []
208
213
209
214
215
+ @flaky (max_runs = 3 )
210
216
def test_lcbc005_long_callback_caching (dash_duo , manager ):
211
217
lock = Lock ()
212
218
@@ -274,6 +280,7 @@ def test_lcbc005_long_callback_caching(dash_duo, manager):
274
280
assert dash_duo .get_logs () == []
275
281
276
282
283
+ @flaky (max_runs = 3 )
277
284
def test_lcbc006_long_callback_caching_multi (dash_duo , manager ):
278
285
lock = Lock ()
279
286
@@ -383,6 +390,7 @@ def test_lcbc006_long_callback_caching_multi(dash_duo, manager):
383
390
assert dash_duo .get_logs () == []
384
391
385
392
393
+ @flaky (max_runs = 3 )
386
394
def test_lcbc007_validation_layout (dash_duo , manager ):
387
395
with setup_long_callback_app (manager , "app7" ) as app :
388
396
dash_duo .start_server (app )
0 commit comments