We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c29defe commit 4e1a7ccCopy full SHA for 4e1a7cc
tests/pytest/test_ui.py
@@ -208,7 +208,10 @@ def test_tooltip_options():
208
209
# Should contain bsOptions attribute with JSON-encoded options
210
assert "bsoptions" in t_str.lower(), "bsOptions attribute should be present"
211
- assert json.dumps(options_dict) in t_str, "Options should be JSON-encoded"
+ # Check that the JSON content is present (with or without spaces after separators)
212
+ assert (
213
+ '"offset"' in t_str and ("[0, 100]" in t_str or "[0,100]" in t_str)
214
+ ), "Options should be JSON-encoded with offset value"
215
216
# Test without options parameter
217
t2 = ui.tooltip(
0 commit comments