Esempio n. 1
0
def process_spec_execution_ending_request(request):
    execution_info = create_execution_context_from(
        request.currentExecutionInfo)
    response = run_hook(request,
                        registry.after_spec(execution_info.specification.tags),
                        execution_info)
    _add_message_and_screenshots(response)
    return response
Esempio n. 2
0
def _execute_after_spec_hook(request, response, _socket):
    execution_info = create_execution_context_from(
        request.specExecutionEndingRequest.currentExecutionInfo)
    run_hook(request, response,
             registry.after_spec(execution_info.specification.tags),
             execution_info)
    response.executionStatusResponse.executionResult.message.extend(
        MessagesStore.pending_messages())
Esempio n. 3
0
def _execute_after_spec_hook(request, response, _socket):
    execution_info = create_execution_context_from(
        request.specExecutionEndingRequest.currentExecutionInfo)
    run_hook(request, response,
             registry.after_spec(execution_info.specification.tags),
             execution_info)
Esempio n. 4
0
 def test_after_spec_decorator(self):
     funcs = registry.after_spec(['haha', 'hehe'])
     expected = ['after_spec1', 'after_spec2']
     self.assertEqual(expected, [func.__name__ for func in funcs])
Esempio n. 5
0
 def test_after_spec_decorator(self):
     funcs = registry.after_spec(['haha', 'hehe'])
     expected = ['after_spec1', 'after_spec2']
     self.assertEqual(expected, [func.__name__ for func in funcs])
Esempio n. 6
0
def _execute_after_spec_hook(request, response, socket):
    execution_info = create_execution_context_from(request.specExecutionEndingRequest.currentExecutionInfo)
    run_hook(request, response, registry.after_spec(execution_info.specification.tags), execution_info)