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

Function test

IPython/testing/__init__.py:19–37  ·  view source on GitHub ↗

Run the entire IPython test suite. Any of the options for run_iptestall() may be passed as keyword arguments. For example:: IPython.test(testgroups=['lib', 'config', 'utils'], fast=2) will run those three sections of the test suite, using two processes.

(**kwargs)

Source from the content-addressed store, hash-verified

17
18# User-level entry point for testing
19def test(**kwargs):
20 """Run the entire IPython test suite.
21
22 Any of the options for run_iptestall() may be passed as keyword arguments.
23
24 For example::
25
26 IPython.test(testgroups=['lib', 'config', 'utils'], fast=2)
27
28 will run those three sections of the test suite, using two processes.
29 """
30
31 # Do the import internally, so that this function doesn't increase total
32 # import time
33 from .iptestcontroller import run_iptestall, default_options
34 options = default_options()
35 for name, val in kwargs.items():
36 setattr(options, name, val)
37 run_iptestall(options)
38
39#-----------------------------------------------------------------------------
40# Constants

Callers

nothing calls this directly

Calls 2

default_optionsFunction · 0.85
run_iptestallFunction · 0.85

Tested by

no test coverage detected