MCPcopy Create free account
hub / github.com/psf/black / test_unparseable_notebook

Function test_unparseable_notebook

tests/test_ipynb.py:402–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400
401
402def test_unparseable_notebook() -> None:
403 path = get_case_path("jupyter", "notebook_which_cant_be_parsed.ipynb")
404 msg = rf"File '{re.escape(str(path))}' cannot be parsed as valid Jupyter notebook\."
405 with pytest.raises(ValueError, match=msg):
406 format_file_in_place(path, fast=True, mode=JUPYTER_MODE)
407
408
409def test_ipynb_diff_with_change() -> None:

Callers

nothing calls this directly

Calls 2

get_case_pathFunction · 0.90
format_file_in_placeFunction · 0.90

Tested by

no test coverage detected