From 1575e1e09db9445ce35f6d10fac7796ae32946c0 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:50:52 +0100 Subject: [PATCH] style: fix oddly formatted `test_multiple_field_strings_in_condition` --- tests/utils/test_schemapi.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/utils/test_schemapi.py b/tests/utils/test_schemapi.py index 6eae42d32..acea9dcb6 100644 --- a/tests/utils/test_schemapi.py +++ b/tests/utils/test_schemapi.py @@ -872,14 +872,13 @@ def test_multiple_field_strings_in_condition(): selection = alt.selection_point() expected_error_message = "A field cannot be used for both the `if_true` and `if_false` values of a condition. One of them has to specify a `value` or `datum` definition." with pytest.raises(ValueError, match=expected_error_message): - ( + chart = ( # noqa: F841 alt.Chart(data.cars()) .mark_circle() .add_params(selection) - .encode( - color=alt.condition(selection, "Origin", "Origin"), - ) - ).to_dict() + .encode(color=alt.condition(selection, "Origin", "Origin")) + .to_dict() + ) def test_serialize_numpy_types():