MCPcopy Index your code
hub / github.com/plotly/plotly.py / test_mixed_input_error

Function test_mixed_input_error

tests/test_optional/test_px/test_px_wide.py:837–843  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

835
836@pytest.mark.parametrize("df", [px.data.stocks(), dict(a=[1, 2], b=["1", "2"])])
837def test_mixed_input_error(df):
838 with pytest.raises(ValueError) as err_msg:
839 px.line(df)
840 assert (
841 "Plotly Express cannot process wide-form data with columns of different type"
842 in str(err_msg.value)
843 )
844
845
846def test_mixed_number_input(constructor):

Callers

nothing calls this directly

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected