Skip to content

Commit

Permalink
style: fix oddly formatted test_multiple_field_strings_in_condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Aug 9, 2024
1 parent 8739239 commit 1575e1e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/utils/test_schemapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 1575e1e

Please sign in to comment.