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

Class TestSection

IPython/testing/iptest.py:150–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 ]
149
150class TestSection(object):
151 def __init__(self, name, includes):
152 self.name = name
153 self.includes = includes
154 self.excludes = []
155 self.dependencies = []
156 self.enabled = True
157
158 def exclude(self, module):
159 if not module.startswith('IPython'):
160 module = self.includes[0] + "." + module
161 self.excludes.append(module.replace('.', os.sep))
162
163 def requires(self, *packages):
164 self.dependencies.extend(packages)
165
166 @property
167 def will_run(self):
168 return self.enabled and all(have[p] for p in self.dependencies)
169
170# Name -> (include, exclude, dependencies_met)
171test_sections = {n:TestSection(n, ['IPython.%s' % n]) for n in test_group_names}

Callers 2

iptest.pyFile · 0.85
run_iptestFunction · 0.85

Calls

no outgoing calls

Tested by 1

run_iptestFunction · 0.68