Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit ec661f0

Browse files
committed
more test cleanup
1 parent 72796c4 commit ec661f0

File tree

3 files changed

+6
-89
lines changed

3 files changed

+6
-89
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"postbuild": "es-check es5 dash_html_components/*.js",
2525
"build:watch": "watch 'npm run build' src",
2626
"test:import": "python -m unittest tests.test_dash_import",
27-
"test:py": "pytest --nopercyfinalize tests/test_dash_html_components.py tests/test_integration.py",
27+
"test:py": "pytest --nopercyfinalize --headless tests/test_dash_html_components.py tests/test_integration.py",
2828
"test": "run-s -c test:py test:import lint"
2929
},
3030
"author": "Chris Parmer <chris@plotly.com>",

tests/IntegrationTests.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

tests/test_integration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import dash_html_components as html
77

88

9-
def test_click(dash_duo):
9+
def test_click_simple(dash_duo):
1010
call_count = Value('i', 0)
1111

1212
app = dash.Dash(__name__)
@@ -36,6 +36,8 @@ def update_output(n_clicks):
3636
assert call_count.value == 2
3737
dash_duo.percy_snapshot('button click')
3838

39+
assert not dash_duo.get_logs()
40+
3941

4042
def test_click_prev(dash_duo):
4143
call_count = Value('i', 0)
@@ -93,3 +95,5 @@ def update_output(*args):
9395
assert timestamp_2.value > timestamp_1.value
9496
assert call_count.value == 4
9597
dash_duo.percy_snapshot('button-2 click again')
98+
99+
assert not dash_duo.get_logs()

0 commit comments

Comments
 (0)