Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def schedule_test_case(self, uuid=None):
test_result = TestResult()
test_result.uuid = uuid or uuid4()
self._items[test_result.uuid] = test_result
yield test_result
def write_test_case(self, uuid=None):
test_result = self._pop_item(uuid=uuid, item_type=TestResult)
if test_result:
plugin_manager.hook.report_result(result=test_result)