Skip to content

Commit 04e81ba

Browse files
committed
Use xfail for flaky tests.
1 parent fcd6a6d commit 04e81ba

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

components/dash-core-components/tests/integration/calendar/test_date_picker_single.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from datetime import datetime, timedelta
22

33
import pytest
4+
import werkzeug
5+
46
from dash import Dash, Input, Output, html, dcc, no_update
57

68

@@ -71,6 +73,11 @@ def test_dtps010_local_and_session_persistence(dash_dcc):
7173
assert dash_dcc.get_logs() == []
7274

7375

76+
@pytest.mark.xfail(
77+
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
78+
reason="Bug with 204 and Transfer-Encoding",
79+
strict=False,
80+
)
7481
def test_dtps011_memory_persistence(dash_dcc):
7582
app = Dash(__name__)
7683
app.layout = html.Div(

components/dash-core-components/tests/integration/store/test_data_lifecycle.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
import pytest
2+
import werkzeug
3+
14
import dash.testing.wait as wait
25

36

7+
@pytest.mark.xfail(
8+
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
9+
reason="Bug with 204 and Transfer-Encoding",
10+
strict=False,
11+
)
412
def test_stdl001_data_lifecycle_with_different_condition(store_app, dash_dcc):
513
dash_dcc.start_server(store_app)
614

components/dash-core-components/tests/integration/tab/test_tabs_with_graphs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import werkzeug
2+
13
from dash import Dash, Input, Output, dcc, html
24
from dash.exceptions import PreventUpdate
35
import json
@@ -119,6 +121,11 @@ def render_content(tab):
119121
assert dash_dcc.get_logs() == []
120122

121123

124+
@pytest.mark.xfail(
125+
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
126+
reason="Bug with 204 and Transfer-Encoding",
127+
strict=False,
128+
)
122129
@pytest.mark.parametrize("is_eager", [True, False])
123130
def test_tabs_render_without_selected(dash_dcc, is_eager):
124131
app = Dash(__name__, eager_loading=is_eager)

tests/integration/callbacks/test_basic_callback.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import pytest
44
import time
55

6+
import werkzeug
7+
68
from dash_test_components import (
79
AsyncComponent,
810
CollapseComponent,
@@ -312,6 +314,11 @@ def set_out(opts):
312314
dash_duo.select_dcc_dropdown("#dd", "opt{}".format(i))
313315

314316

317+
@pytest.mark.xfail(
318+
condition=werkzeug.__version__ in ("2.1.0", "2.1.1"),
319+
reason="Bug with 204 and Transfer-Encoding",
320+
strict=False,
321+
)
315322
@pytest.mark.parametrize("refresh", [False, True])
316323
def test_cbsc007_parallel_updates(refresh, dash_duo):
317324
# This is a funny case, that seems to mostly happen with dcc.Location

0 commit comments

Comments
 (0)