Open fkiraly opened 2 weeks ago
FYI @mateuszkasprowicz - suggestions on how best to test this? Just that the html repr does not lead to error.
I'm thinking something like snapshot testing for this. For example:
def test_base_object_html_snapshot(base_object):
f = StringIO()
with redirect_stdout(f):
display(base_object)
html_output = f.getvalue()
expected_output = "correct html"
# some assertions
Hm, that would work, I would add it to the general test suite in addition though - that is:
We should add a test for html repr of all
BaseObject
descendants, inTestAllObjects
.This was apparently not tested, see https://github.com/sktime/sktime/pull/7043