MCPcopy
hub / github.com/pytest-dev/pytest / istestclass

Method istestclass

src/_pytest/python.py:378–383  ·  view source on GitHub ↗
(self, obj: object, name: str)

Source from the content-addressed store, hash-verified

376 return False
377
378 def istestclass(self, obj: object, name: str) -> bool:
379 if not (self.classnamefilter(name) or self.isnosetest(obj)):
380 return False
381 if inspect.isabstract(obj):
382 return False
383 return True
384
385 def _matches_prefix_or_glob_option(self, option_name: str, name: str) -> bool:
386 """Check if the given name matches the prefix or glob-pattern defined

Callers 1

Calls 2

classnamefilterMethod · 0.95
isnosetestMethod · 0.95

Tested by

no test coverage detected