(
mode: Mode, expected_output: str, expectation: ContextManager[object]
)
| 197 | ], |
| 198 | ) |
| 199 | def 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 | |
| 211 | def test_cell_magic_nested() -> None: |
nothing calls this directly
no test coverage detected