Skip to content

Commit 246ec4d

Browse files
authored
Merge branch 'dev' into plotlyjs-2.4.1
2 parents e281fec + 81d0268 commit 246ec4d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

requires-testing.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ multiprocess>=0.70.12
1313
redis>=3.5.3
1414
psutil>=5.8.0
1515
celery[redis]>=5.1.2
16+
flaky>=3.7.0

tests/integration/long_callback/test_basic_long_callback.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytest
77
import shutil
88
import time
9+
from flaky import flaky
910

1011
from dash.testing.application_runners import import_app
1112
import psutil
@@ -86,6 +87,7 @@ def setup_long_callback_app(manager_name, app_name):
8687
os.environ.pop("DISKCACHE_DIR")
8788

8889

90+
@flaky(max_runs=3)
8991
def test_lcbc001_fast_input(dash_duo, manager):
9092
"""
9193
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):
107109
assert dash_duo.get_logs() == []
108110

109111

112+
@flaky(max_runs=3)
110113
def test_lcbc002_long_callback_running(dash_duo, manager):
111114
with setup_long_callback_app(manager, "app2") as app:
112115
dash_duo.start_server(app)
@@ -134,6 +137,7 @@ def test_lcbc002_long_callback_running(dash_duo, manager):
134137
assert dash_duo.get_logs() == []
135138

136139

140+
@flaky(max_runs=3)
137141
def test_lcbc003_long_callback_running_cancel(dash_duo, manager):
138142
lock = Lock()
139143

@@ -174,6 +178,7 @@ def test_lcbc003_long_callback_running_cancel(dash_duo, manager):
174178
assert dash_duo.get_logs() == []
175179

176180

181+
@flaky(max_runs=3)
177182
def test_lcbc004_long_callback_progress(dash_duo, manager):
178183
with setup_long_callback_app(manager, "app4") as app:
179184
dash_duo.start_server(app)
@@ -207,6 +212,7 @@ def test_lcbc004_long_callback_progress(dash_duo, manager):
207212
assert dash_duo.get_logs() == []
208213

209214

215+
@flaky(max_runs=3)
210216
def test_lcbc005_long_callback_caching(dash_duo, manager):
211217
lock = Lock()
212218

@@ -274,6 +280,7 @@ def test_lcbc005_long_callback_caching(dash_duo, manager):
274280
assert dash_duo.get_logs() == []
275281

276282

283+
@flaky(max_runs=3)
277284
def test_lcbc006_long_callback_caching_multi(dash_duo, manager):
278285
lock = Lock()
279286

@@ -383,6 +390,7 @@ def test_lcbc006_long_callback_caching_multi(dash_duo, manager):
383390
assert dash_duo.get_logs() == []
384391

385392

393+
@flaky(max_runs=3)
386394
def test_lcbc007_validation_layout(dash_duo, manager):
387395
with setup_long_callback_app(manager, "app7") as app:
388396
dash_duo.start_server(app)

0 commit comments

Comments
 (0)