Skip to content

Commit ac54022

Browse files
committed
test fix
1 parent e7392fb commit ac54022

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/unit/test_plotting_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ def test_all_colors_different(self):
7272
def test_get_color_for_field_invalid(self):
7373
"""Test that invalid fields raise NotImplementedError."""
7474
# Create a mock field that doesn't match any case
75-
mock_field = Mock(spec=FieldComponent)
76-
mock_field.__str__ = Mock(return_value="invalid_field")
75+
mock_field = "invalid_field"
7776

7877
with pytest.raises(NotImplementedError, match="Field must be one of"):
7978
get_color_for_field(mock_field)

0 commit comments

Comments
 (0)