def process_spec_execution_starting_request(request): execution_info = create_execution_context_from( request.currentExecutionInfo) response = run_hook( request, registry.before_spec(execution_info.specification.tags), execution_info) _add_message_and_screenshots(response) return response
def _execute_before_spec_hook(request, response, _socket): execution_info = create_execution_context_from( request.specExecutionStartingRequest.currentExecutionInfo) run_hook(request, response, registry.before_spec(execution_info.specification.tags), execution_info) response.executionStatusResponse.executionResult.message.extend( MessagesStore.pending_messages())
def _execute_before_spec_hook(request, response, _socket): execution_info = create_execution_context_from( request.specExecutionStartingRequest.currentExecutionInfo) run_hook(request, response, registry.before_spec(execution_info.specification.tags), execution_info)
def test_before_spec_decorator(self): funcs = registry.before_spec(['haha', 'hehe']) expected = ['before_spec1', 'before_spec2'] self.assertEqual(expected, [func.__name__ for func in funcs])
def _execute_before_spec_hook(request, response, socket): execution_info = create_execution_context_from(request.specExecutionStartingRequest.currentExecutionInfo) run_hook(request, response, registry.before_spec(execution_info.specification.tags), execution_info)