edx-lint icon indicating copy to clipboard operation
edx-lint copied to clipboard

Layered test checker doesn't diagnose three-layer cakes

Open nedbat opened this issue 9 years ago • 0 comments

This code runs two tests in nose and pytest:

# Three-layer cake.

class BaseTest(unittest.TestCase):
    __test__ = False
    def test_it(self):
        self.fail("Hello, world!")

class Middle(BaseTest):
    __test__ = True

class MoreTests(Middle):
    __test__ = True

but the layered test checker doesn't detect it.

nedbat avatar Oct 05 '16 12:10 nedbat