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

Function test_empty_histogram

tests/test_optional/test_px/test_px_functions.py:652–659  ·  view source on GitHub ↗

Empty px.histogram() should not raise, matching scatter/bar/pie behavior. Regression test for https://github.com/plotly/plotly.py/issues/5534

()

Source from the content-addressed store, hash-verified

650
651
652def test_empty_histogram():
653 """Empty px.histogram() should not raise, matching scatter/bar/pie behavior.
654
655 Regression test for https://github.com/plotly/plotly.py/issues/5534
656 """
657 fig = px.histogram()
658 assert len(fig.data) == 1
659 assert fig.data[0].type == "histogram"

Callers

nothing calls this directly

Calls 1

histogramMethod · 0.80

Tested by

no test coverage detected