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

Function test_cell_magic_with_custom_python_magic

tests/test_ipynb.py:199–208  ·  view source on GitHub ↗
(
    mode: Mode, expected_output: str, expectation: ContextManager[object]
)

Source from the content-addressed store, hash-verified

197 ],
198)
199def test_cell_magic_with_custom_python_magic(
200 mode: Mode, expected_output: str, expectation: ContextManager[object]
201) -> None:
202 with expectation:
203 result = format_cell(
204 "%%custom_python_magic -n1 -n2\nx=2",
205 fast=True,
206 mode=mode,
207 )
208 assert result == expected_output
209
210
211def test_cell_magic_nested() -> None:

Callers

nothing calls this directly

Calls 1

format_cellFunction · 0.90

Tested by

no test coverage detected