def stop_case(self, status, message=None, trace=None):
        test = self.stack[-1]
        test.status = status
        test.stop = now()

        if message or trace:
            test.failure = Failure(message=message, trace=trace or '')

        self.testsuite.tests.append(test)

        return test
:arg status: one of :py:class:`allure.constants.Status`
dataset/ETHPy150Open allure-framework/allure-python/allure/common.py/AllureImpl.stop_case