MCPcopy Create free account
hub / github.com/ipython/ipython / test_instantiation_FileLink

Function test_instantiation_FileLink

IPython/lib/tests/test_display.py:44–48  ·  view source on GitHub ↗

FileLink: Test class can be instantiated

()

Source from the content-addressed store, hash-verified

42#--------------------------
43
44def test_instantiation_FileLink():
45 """FileLink: Test class can be instantiated"""
46 fl = display.FileLink('example.txt')
47 # TODO: remove if when only Python >= 3.6 is supported
48 fl = display.FileLink(pathlib.PurePath('example.txt'))
49
50def test_warning_on_non_existent_path_FileLink():
51 """FileLink: Calling _repr_html_ on non-existent files returns a warning

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected