MCPcopy Index your code
hub / github.com/ipython/ipython / test_parse_options

Function test_parse_options

tests/test_magic.py:592–598  ·  view source on GitHub ↗

Tests for basic options parsing in magics.

()

Source from the content-addressed store, hash-verified

590
591
592def test_parse_options():
593 """Tests for basic options parsing in magics."""
594 # These are only the most minimal of tests, more should be added later. At
595 # the very least we check that basic text/unicode calls work OK.
596 m = DummyMagics(_ip)
597 assert m.parse_options("foo", "")[1] == "foo"
598 assert m.parse_options("foo", "")[1] == "foo"
599
600
601def test_parse_options_preserve_non_option_string():

Callers

nothing calls this directly

Calls 2

DummyMagicsClass · 0.85
parse_optionsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…