77
88import logistro
99import pytest
10- from hypothesis import given
10+ from hypothesis import HealthCheck , given , settings
1111from hypothesis import strategies as st
1212
1313from 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 ())
240241async 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 ())
257259async 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 ())
274277async 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 ())
298302async def test_combined_overrides (tmp_path , data ):
299303 """Test combination of multiple overrides."""
0 commit comments