MCPcopy
hub / github.com/pandas-dev/pandas / test_caption

Method test_caption

pandas/tests/io/formats/style/test_style.py:809–817  ·  view source on GitHub ↗
(self, df)

Source from the content-addressed store, hash-verified

807 assert ctx["body"][0][2]["display_value"] == "NA"
808
809 def test_caption(self, df):
810 styler = Styler(df, caption="foo")
811 result = styler.to_html()
812 assert all(["caption" in result, "foo" in result])
813
814 styler = df.style
815 result = styler.set_caption("baz")
816 assert styler is result
817 assert styler.caption == "baz"
818
819 def test_uuid(self, df):
820 styler = Styler(df, uuid="abc123")

Callers

nothing calls this directly

Calls 3

to_htmlMethod · 0.95
set_captionMethod · 0.95
StylerClass · 0.90

Tested by

no test coverage detected