Method
test_bad_args
(
self,
x: Hashable,
y: Hashable,
hue: Hashable | None,
add_legend: bool | None,
add_colorbar: bool | None,
error_type: type[Exception],
)
Source from the content-addressed store, hash-verified
| 2922 | ], |
| 2923 | ) |
| 2924 | def test_bad_args( |
| 2925 | self, |
| 2926 | x: Hashable, |
| 2927 | y: Hashable, |
| 2928 | hue: Hashable | None, |
| 2929 | add_legend: bool | None, |
| 2930 | add_colorbar: bool | None, |
| 2931 | error_type: type[Exception], |
| 2932 | ) -> None: |
| 2933 | with pytest.raises(error_type): |
| 2934 | self.ds.plot.scatter( |
| 2935 | x=x, y=y, hue=hue, add_legend=add_legend, add_colorbar=add_colorbar |
| 2936 | ) |
| 2937 | |
| 2938 | def test_does_not_allow_positional_args(self) -> None: |
| 2939 | with pytest.raises(TypeError, match="takes 1 positional argument"): |
Callers
nothing calls this directly
Tested by
no test coverage detected