diff --git a/tests/test_categorical.py b/tests/test_categorical.py index 7031d0940c..88844cf5dd 100644 --- a/tests/test_categorical.py +++ b/tests/test_categorical.py @@ -3125,6 +3125,10 @@ def test_invalid_kind(self, long_df): with pytest.raises(ValueError, match="Invalid `kind`: 'wrong'"): catplot(long_df, kind="wrong") + def test_no_legend_with_auto(self): + + g = catplot(self.df, x="g", y="y", hue="g", legend='auto') + assert g._legend is None class TestBeeswarm: