def beforeTest(self, test):
        """Skip or Error the test if the dependencies are not fulfilled"""
        tn = self.test_name(test)
        res = self.dependency_failed(tn)
        test.test._originalName = test.test._testMethodName
        if res:
            test.test.skipTestNoseDep = partial(test.test.skipTest, res)
            test.test._testMethodName = 'skipTestNoseDep'
            return
        res = self.dependency_ran(tn)
        if res:
            def error_test():
                raise Exception(res)
            test.test.errTestNoseDep = error_test
            test.test._testMethodName = 'errTestNoseDep'
def beforeTest ( self , test ) : tn = self . test_name ( test ) res = self . dependency_failed ( tn ) test . test . _originalName = test . test . _testMethodName if res : test . test . skipTestNoseDep = partial ( test . test . skipTest , res ) test . test . _testMethodName = 'skipTestNoseDep' return res = self . dependency_ran ( tn ) if res : def error_test ( ) : raise Exception ( res ) test . test . errTestNoseDep = error_test test . test . _testMethodName = 'errTestNoseDep'
Skip or Error the test if the dependencies are not fulfilled