Skip to content

Commit 963b17f

Browse files
committed
Remove dash-flow/dash-dangerous
1 parent 87afdd9 commit 963b17f

File tree

2 files changed

+0
-67
lines changed

2 files changed

+0
-67
lines changed

requirements/ci.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Dependencies used by CI on github.com/plotly/dash
22
black==22.3.0
3-
dash-flow-example==0.0.5
4-
dash-dangerously-set-inner-html
53
flake8==7.0.0
64
flaky==3.8.1
75
flask-talisman==1.0.0

tests/integration/test_integration.py

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
import flask
33
import json
44
import pytest
5-
import re
65

76
from bs4 import BeautifulSoup
87

9-
import dash_dangerously_set_inner_html
10-
import dash_flow_example
11-
128
import dash
139
from dash import Dash, html, dcc, Input, Output
1410
from dash.exceptions import PreventUpdate
@@ -48,67 +44,6 @@ def test_inin003_wildcard_data_attributes(dash_duo):
4844
assert dash_duo.get_logs() == []
4945

5046

51-
def test_inin004_no_props_component(dash_duo):
52-
app = Dash()
53-
app.layout = html.Div(
54-
[
55-
dash_dangerously_set_inner_html.DangerouslySetInnerHTML(
56-
"""
57-
<h1>No Props Component</h1>
58-
"""
59-
)
60-
],
61-
id="app",
62-
)
63-
64-
dash_duo.start_server(app)
65-
66-
assert dash_duo.get_logs() == []
67-
assert dash_duo.find_element("h1").text == "No Props Component"
68-
69-
inner = dash_duo.find_element("#app").get_property("innerHTML")
70-
expected = "<div> <h1>No Props Component</h1> </div>"
71-
assert re.sub("\\s+", " ", inner) == expected
72-
73-
74-
def test_inin005_flow_component(dash_duo):
75-
app = Dash()
76-
77-
app.layout = html.Div(
78-
[
79-
dash_flow_example.ExampleReactComponent(
80-
id="react", value="my-value", label="react component"
81-
),
82-
dash_flow_example.ExampleFlowComponent(
83-
id="flow", value="my-value", label="flow component"
84-
),
85-
html.Hr(),
86-
html.Div(id="output"),
87-
]
88-
)
89-
90-
@app.callback(
91-
Output("output", "children"), [Input("react", "value"), Input("flow", "value")]
92-
)
93-
def display_output(react_value, flow_value):
94-
return html.Div(
95-
[
96-
"You have entered {} and {}".format(react_value, flow_value),
97-
html.Hr(),
98-
html.Label("Flow Component Docstring"),
99-
html.Pre(dash_flow_example.ExampleFlowComponent.__doc__),
100-
html.Hr(),
101-
html.Label("React PropTypes Component Docstring"),
102-
html.Pre(dash_flow_example.ExampleReactComponent.__doc__),
103-
html.Div(id="waitfor"),
104-
]
105-
)
106-
107-
dash_duo.start_server(app)
108-
dash_duo.wait_for_element("#waitfor")
109-
dash_duo.percy_snapshot(name="flowtype")
110-
111-
11247
def test_inin006_meta_tags(dash_duo):
11348
metas = [
11449
{"name": "description", "content": "my dash app"},

0 commit comments

Comments
 (0)