1
+ import pytest
1
2
from dash import Dash , dcc , html , Input , Output
2
3
3
4
@@ -93,7 +94,8 @@ def test_mkdw002_dcclink(dash_dcc):
93
94
assert dash_dcc .get_logs () == []
94
95
95
96
96
- def test_mkdw003_without_mathjax (dash_dcc ):
97
+ @pytest .mark .parametrize ("is_eager" , [True , False ])
98
+ def test_mkdw003_without_mathjax (dash_dcc , is_eager ):
97
99
app = Dash (__name__ )
98
100
99
101
app .layout = html .Div (
@@ -108,7 +110,8 @@ def test_mkdw003_without_mathjax(dash_dcc):
108
110
assert dash_dcc .get_logs () == []
109
111
110
112
111
- def test_mkdw004_inline_mathjax (dash_dcc ):
113
+ @pytest .mark .parametrize ("is_eager" , [True , False ])
114
+ def test_mkdw004_inline_mathjax (dash_dcc , is_eager ):
112
115
app = Dash (__name__ , eager_loading = False , assets_folder = "../../assets" )
113
116
114
117
app .layout = html .Div (
@@ -121,7 +124,8 @@ def test_mkdw004_inline_mathjax(dash_dcc):
121
124
assert dash_dcc .get_logs () == []
122
125
123
126
124
- def test_mkdw005_block_mathjax (dash_dcc ):
127
+ @pytest .mark .parametrize ("is_eager" , [True , False ])
128
+ def test_mkdw005_block_mathjax (dash_dcc , is_eager ):
125
129
app = Dash (__name__ , eager_loading = False , assets_folder = "../../assets" )
126
130
127
131
app .layout = html .Div (
@@ -145,7 +149,8 @@ def test_mkdw005_block_mathjax(dash_dcc):
145
149
assert dash_dcc .get_logs () == []
146
150
147
151
148
- def test_mkdw006_toggle_mathjax (dash_dcc ):
152
+ @pytest .mark .parametrize ("is_eager" , [True , False ])
153
+ def test_mkdw006_toggle_mathjax (dash_dcc , is_eager ):
149
154
app = Dash (__name__ )
150
155
151
156
gravity = "$F=\\ frac{Gm_1m_2}{r^2}$"
@@ -192,7 +197,8 @@ def toggle(n):
192
197
assert dash_dcc .driver .execute_script ("return !!window.MathJax" )
193
198
194
199
195
- def test_mkdw007_load_mathjax (dash_dcc ):
200
+ @pytest .mark .parametrize ("is_eager" , [True , False ])
201
+ def test_mkdw007_load_mathjax (dash_dcc , is_eager ):
196
202
app = Dash (__name__ )
197
203
198
204
gravity = "$F=\\ frac{Gm_1m_2}{r^2}$"
0 commit comments