MCPcopy Create free account
hub / github.com/ipython/ipython / options

Method options

IPython/testing/plugin/ipdoctest.py:603–621  ·  view source on GitHub ↗
(self, parser, env=os.environ)

Source from the content-addressed store, hash-verified

601 enabled = True
602
603 def options(self, parser, env=os.environ):
604 Plugin.options(self, parser, env)
605 parser.add_option('--doctest-tests', action='store_true',
606 dest='doctest_tests',
607 default=env.get('NOSE_DOCTEST_TESTS',True),
608 help="Also look for doctests in test modules. "
609 "Note that classes, methods and functions should "
610 "have either doctests or non-doctest tests, "
611 "not both. [NOSE_DOCTEST_TESTS]")
612 parser.add_option('--doctest-extension', action="append",
613 dest="doctestExtension",
614 help="Also look for doctests in files with "
615 "this extension [NOSE_DOCTEST_EXTENSION]")
616 # Set the default as a list, if given in env; otherwise
617 # an additional value set on the command line will cause
618 # an error.
619 env_setting = env.get('NOSE_DOCTEST_EXTENSION')
620 if env_setting is not None:
621 parser.set_defaults(doctestExtension=tolist(env_setting))
622
623
624 def configure(self, options, config):

Callers

nothing calls this directly

Calls 1

optionsMethod · 0.45

Tested by

no test coverage detected