iris icon indicating copy to clipboard operation
iris copied to clipboard

Reinstate "CubeList._repr_html_" method.

Open pp-mo opened this issue 3 years ago • 0 comments

🐛 Bug Report

How To Reproduce

CubeList([])._repr_html_() ought to produce an html string, but instead fails with a simple AttributeError: 'CubeList' object has no attribute '_repr_html_'

Notes

Seems to be a bug introduced in #4767

We already test the behaviour of CubeListRepresentation.repr_html() But tests don't call CubeList._repr_html_ itself.

Fix should include a test that CubeList._repr_html_

  1. exists,
  2. creates a CubeListRepresentation, and
  3. calls its repr_html (can be mock-ist)

pp-mo avatar Sep 20 '22 15:09 pp-mo