MCPcopy Index your code
hub / github.com/ipython/ipython / test_image_mimes

Function test_image_mimes

tests/test_display_2.py:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_image_mimes():
38 fmt = get_ipython().display_formatter.format
39 for format in display.Image._ACCEPTABLE_EMBEDDINGS:
40 mime = display.Image._MIMETYPES[format]
41 img = display.Image(b"garbage", format=format)
42 data, metadata = fmt(img)
43 assert sorted(data) == sorted([mime, "text/plain"])
44
45
46def test_geojson():

Callers

nothing calls this directly

Calls 1

get_ipythonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…