Skip to content

Commit f1270f9

Browse files
committed
lint & test cleanup
hopefully these import changes will work on CI, they're needed for me to run locally
1 parent 67927f7 commit f1270f9

File tree

5 files changed

+8
-38
lines changed

5 files changed

+8
-38
lines changed

components/dash-core-components/src/components/Tooltip.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Tooltip = props => {
1212

1313
return (
1414
<>
15-
<div className='dcc-tooltip-bounding-box'>
15+
<div className="dcc-tooltip-bounding-box">
1616
<span
1717
data-dash-is-loading={is_loading || undefined}
1818
className={`hover hover-${props.direction}`}

tests/__init__.py

Whitespace-only changes.

tests/integration/callbacks/test_wildcards.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import dash
77
from dash import Dash, Input, Output, State, ALL, ALLSMALLER, MATCH, html, dcc
88

9-
from assets.todo_app import todo_app
10-
from assets.grouping_app import grouping_app
9+
from tests.assets.todo_app import todo_app
10+
from tests.assets.grouping_app import grouping_app
1111

1212

1313
def css_escape(s):

tests/integration/devtools/test_devtools_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import dash.testing.wait as wait
66

77
from dash_test_components import WidthComponent
8-
from assets.todo_app import todo_app
8+
from tests.assets.todo_app import todo_app
99

1010

1111
def test_dvui001_disable_props_check_config(dash_duo):

tests/integration/test_integration.py

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from dash import Dash, html, dcc, Input, Output
1212
from dash.exceptions import PreventUpdate
1313

14+
from dash.testing.wait import until
15+
1416

1517
def test_inin004_wildcard_data_attributes(dash_duo):
1618
app = Dash()
@@ -328,42 +330,10 @@ def render_content(tab):
328330

329331
dash_duo.find_element("#graph1:not(.dash-graph--pending)").click()
330332

331-
graph_1_expected_clickdata = {
332-
"points": [
333-
{
334-
"curveNumber": 0,
335-
"pointNumber": 1,
336-
"pointIndex": 1,
337-
"x": 2,
338-
"y": 10,
339-
"label": 2,
340-
"value": 10,
341-
}
342-
]
343-
}
344-
345-
graph_2_expected_clickdata = {
346-
"points": [
347-
{
348-
"curveNumber": 0,
349-
"pointNumber": 1,
350-
"pointIndex": 1,
351-
"x": 3,
352-
"y": 10,
353-
"label": 3,
354-
"value": 10,
355-
}
356-
]
357-
}
358-
359-
dash_duo.wait_for_text_to_equal(
360-
"#graph1_info", json.dumps(graph_1_expected_clickdata)
361-
)
333+
until(lambda: '"label": 2' in dash_duo.find_element("#graph1_info").text, timeout=3)
362334

363335
dash_duo.find_element("#tab2").click()
364336

365337
dash_duo.find_element("#graph2:not(.dash-graph--pending)").click()
366338

367-
dash_duo.wait_for_text_to_equal(
368-
"#graph2_info", json.dumps(graph_2_expected_clickdata)
369-
)
339+
until(lambda: '"label": 3' in dash_duo.find_element("#graph2_info").text, timeout=3)

0 commit comments

Comments
 (0)