Пример #1
0
def _execute_after_suite_hook(request, response, _socket):
    execution_info = create_execution_context_from(
        request.executionEndingRequest.currentExecutionInfo)
    run_hook(request, response, registry.after_suite(), execution_info)
    response.executionStatusResponse.executionResult.message.extend(
        MessagesStore.pending_messages())
    response.executionStatusResponse.executionResult.screenshots.extend(
        ScreenshotsStore.pending_screenshots())
Пример #2
0
def _execute_after_suite_hook(request, response, _socket):
    execution_info = create_execution_context_from(
        request.executionEndingRequest.currentExecutionInfo)
    run_hook(request, response, registry.after_suite(), execution_info)
Пример #3
0
 def test_after_suite_decorator(self):
     funcs = registry.after_suite()
     expected = ['after_suite1', 'after_suite2']
     self.assertEqual(expected, [func.__name__ for func in funcs])
Пример #4
0
 def test_after_suite_decorator(self):
     funcs = registry.after_suite()
     expected = ['after_suite1', 'after_suite2']
     self.assertEqual(expected, [func.__name__ for func in funcs])
Пример #5
0
def _execute_after_suite_hook(request, response, socket):
    execution_info = create_execution_context_from(request.executionEndingRequest.currentExecutionInfo)
    run_hook(request, response, registry.after_suite(), execution_info)
Пример #6
0
def process_execution_ending_request(request):
    execution_info = create_execution_context_from(
        request.currentExecutionInfo)
    response = run_hook(request, registry.after_suite(), execution_info)
    _add_message_and_screenshots(response)
    return response