

def get_test_classes_from_module(mod):
    mod._suites = (set(getattr(cls, '_suites', set())) | get_parent_module_suites(mod))
    for (_, cls) in inspect.getmembers(mod, inspect.isclass):
        if (cls.__module__ != mod.__name__):
            continue
        if (not cls.__dict__.get('__test__', True)):
            continue
        if isinstance(cls, MetaTestCase):
            cls._suites = (set(getattr(cls, '_suites', set())) | mod._suites)
            (yield cls)
        elif issubclass(cls, unittest.TestCase):
            (yield TestifiedUnitTest.from_unittest_case(cls, module_suites=mod._suites))

dataset/ETHPy150Open Yelp/Testify/testify/test_discovery.py get_test_classes_from_module/VarMisuse@19/26 `mod`->`cls`