TST: make test agnostic of dict order
@@ -10,9 +10,11 @@ def test_colab_renderer_embed_options():
with alt.renderers.enable_context('colab', embed_options=dict(actions=False)):
bundle = chart._repr_mimebundle_(None, None)
html = bundle['text/html']
- assert 'embed_opt = {"actions": false, "mode": "vega-lite"}' in html
+ assert ('embed_opt = {"actions": false, "mode": "vega-lite"}' in html or
+ 'embed_opt = {"mode": "vega-lite", "actions": false}' in html)
with alt.renderers.enable_context('colab', embed_options=dict(actions=True)):
bundle = chart._repr_mimebundle_(None, None)
html = bundle['text/html']
- assert 'embed_opt = {"actions": true, "mode": "vega-lite"}' in html
+ assert ('embed_opt = {"actions": true, "mode": "vega-lite"}' in html or
+ 'embed_opt = {"mode": "vega-lite", "actions": true}' in html)
