예제 #1
0
    def setup(self):
        self.test_chooser = TestChooser()
        class TestKlsForTest(object):
            def ignore__test(self): pass

            def test_with__test__set(self): pass
            test_with__test__set.__test__ = False

            def test_actual(self): pass

        class TestIgnoredKls(object):
            def test_things(self): pass

        class TestKlsWithInherited(TestKlsForTest):
            def test_on_subclass(self): pass

        class TestKlsParent(object):
            __only_run_tests_in_children__ = True
            def test_one(self): pass
            def test_two(self): pass

        class TestKlsChild(TestKlsParent): pass
        class TestKlsGrandChild(TestKlsChild): pass

        self.TestKlsForTest = TestKlsForTest
        self.TestIgnoredKls = TestIgnoredKls
        self.TestKlsWithInherited = TestKlsWithInherited

        self.TestKlsChild = TestKlsChild
        self.TestKlsParent = TestKlsParent
        self.TestKlsGrandChild = TestKlsGrandChild
예제 #2
0
    def setup(self):
        self.test_chooser = TestChooser()

        class TestKlsForTest(object):
            def ignore__test(self):
                pass

            def test_with__test__set(self):
                pass

            test_with__test__set.__test__ = False

            def test_actual(self):
                pass

        class TestIgnoredKls(object):
            def test_things(self):
                pass

        class TestKlsWithInherited(TestKlsForTest):
            def test_on_subclass(self):
                pass

        self.TestKlsForTest = TestKlsForTest
        self.TestIgnoredKls = TestIgnoredKls
        self.TestKlsWithInherited = TestKlsWithInherited
예제 #3
0
 def setup(self):
     self.test_chooser = TestChooser()