We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7392fb commit ac54022Copy full SHA for ac54022
tests/unit/test_plotting_utils.py
@@ -72,8 +72,7 @@ def test_all_colors_different(self):
72
def test_get_color_for_field_invalid(self):
73
"""Test that invalid fields raise NotImplementedError."""
74
# 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")
+ mock_field = "invalid_field"
77
78
with pytest.raises(NotImplementedError, match="Field must be one of"):
79
get_color_for_field(mock_field)
0 commit comments