Skip to content

Commit 6f281f8

Browse files
committed
Supress unhelpful hypo health checks.
1 parent a115723 commit 6f281f8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/py/tests/test_page_generator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import logistro
99
import pytest
10-
from hypothesis import given
10+
from hypothesis import HealthCheck, given, settings
1111
from hypothesis import strategies as st
1212

1313
from kaleido import PageGenerator
@@ -236,7 +236,8 @@ async def test_mathjax_false():
236236

237237

238238
# Test user overrides
239-
@given(st.data()) # claude, change all further functions to this style
239+
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
240+
@given(st.data())
240241
async def test_custom_plotly_url(tmp_path, data):
241242
"""Test custom plotly URL override."""
242243
custom_plotly = data.draw(st_valid_path(tmp_path))
@@ -253,6 +254,7 @@ async def test_custom_plotly_url(tmp_path, data):
253254
assert scripts[2].endswith("kaleido_scopes.js")
254255

255256

257+
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
256258
@given(st.data())
257259
async def test_custom_mathjax_url(tmp_path, data):
258260
"""Test custom mathjax URL override."""
@@ -270,6 +272,7 @@ async def test_custom_mathjax_url(tmp_path, data):
270272
assert scripts[2].endswith("kaleido_scopes.js")
271273

272274

275+
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
273276
@given(st.data())
274277
async def test_other_scripts(tmp_path, data):
275278
"""Test adding other scripts."""
@@ -294,6 +297,7 @@ async def test_other_scripts(tmp_path, data):
294297
assert scripts[-1].endswith("kaleido_scopes.js")
295298

296299

300+
@settings(suppress_health_check=[HealthCheck.function_scoped_fixture])
297301
@given(st.data())
298302
async def test_combined_overrides(tmp_path, data):
299303
"""Test combination of multiple overrides."""

0 commit comments

Comments
 (0)