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

Method wantFile

IPython/testing/iptest.py:266–271  ·  view source on GitHub ↗

Return whether the given filename should be scanned for tests.

(self, filename)

Source from the content-addressed store, hash-verified

264 self.enabled = True
265
266 def wantFile(self, filename):
267 """Return whether the given filename should be scanned for tests.
268 """
269 if any(pat in filename for pat in self.exclude_patterns):
270 return False
271 return None
272
273 def wantDirectory(self, directory):
274 """Return whether the given directory should be scanned for tests.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected