@classmethod
    def tearDownClass(cls):
        drop_db = True

        if cls.current_result.errors or cls.current_result.failures:
            # Don't drop DB on test failure
            drop_db = False

        if drop_db:
            cls._drop_db()
dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/base.py/DbTestCase.tearDownClass/original