diff --git a/tests/vegalite/v5/test_api.py b/tests/vegalite/v5/test_api.py index 56bc87e05..a7d2f1c69 100644 --- a/tests/vegalite/v5/test_api.py +++ b/tests/vegalite/v5/test_api.py @@ -425,7 +425,7 @@ def test_when_then_otherwise() -> None: when_then = alt.when(select).then(alt.value(2, empty=False)) when_then_otherwise = when_then.otherwise(alt.value(0)) - expected = alt.condition(select, alt.value(2, empty=False), alt.value(0)) + expected = dict(alt.condition(select, alt.value(2, empty=False), alt.value(0))) with pytest.raises(TypeError, match="list"): when_then.otherwise([1, 2, 3]) # type: ignore