def beforeTest(self, test):
     if not hasattr(test.test, 'cls'):
         return
     plugin_base.before_test(
         test,
         test.test.cls.__module__,
         test.test.cls, test.test.method.__name__)
Exemple #2
0
def test_setup(item):
    plugin_base.before_test(item, item.parent.module.__name__, item.parent.cls,
                            item.name)
Exemple #3
0
 def beforeTest(self, test):
     if not hasattr(test.test, 'cls'):
         return
     plugin_base.before_test(test, test.test.cls.__module__, test.test.cls,
                             test.test.method.__name__)
def test_setup(item):
    plugin_base.before_test(item, item.parent.module.__name__,
                            item.parent.cls, item.name)