(self)
| 827 | assert result.uuid == "aaa" |
| 828 | |
| 829 | def test_unique_id(self): |
| 830 | # See https://github.com/pandas-dev/pandas/issues/16780 |
| 831 | df = DataFrame({"a": [1, 3, 5, 6], "b": [2, 4, 12, 21]}) |
| 832 | result = df.style.to_html(uuid="test") |
| 833 | assert "test" in result |
| 834 | ids = re.findall('id="(.*?)"', result) |
| 835 | assert np.unique(ids).size == len(ids) |
| 836 | |
| 837 | def test_table_styles(self, df): |
| 838 | style = [{"selector": "th", "props": [("foo", "bar")]}] # default format |