Test to assert preservation of non-option part of magic-block, while parsing magic options.
()
| 599 | |
| 600 | |
| 601 | def test_parse_options_preserve_non_option_string(): |
| 602 | """Test to assert preservation of non-option part of magic-block, while parsing magic options.""" |
| 603 | m = DummyMagics(_ip) |
| 604 | opts, stmt = m.parse_options( |
| 605 | " -n1 -r 13 _ = 314 + foo", "n:r:", preserve_non_opts=True |
| 606 | ) |
| 607 | assert opts == {"n": "1", "r": "13"} |
| 608 | assert stmt == "_ = 314 + foo" |
| 609 | |
| 610 | |
| 611 | def test_run_magic_preserve_code_block(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…