Ejemplo n.º 1
0
def test_hello_world_reexecution():
    with exec_for_test(define_hello_world_pipeline()) as result:
        assert result.success

        output_notebook_path = get_path([
            x for x in result.step_event_list
            if x.event_type_value == 'STEP_MATERIALIZATION'
        ][0])
        # .event_specific_data.materialization.path

        reexecution_solid = define_dagstermill_solid('hello_world_reexecution',
                                                     output_notebook_path)

        reexecution_pipeline = PipelineDefinition([reexecution_solid])

        with exec_for_test(reexecution_pipeline) as reexecution_result:
            assert reexecution_result.success
Ejemplo n.º 2
0
def test_hello_world_reexecution():
    try:
        result = execute_pipeline(define_hello_world_pipeline())
        assert result.success

        output_notebook_path = [
            x for x in result.step_event_list
            if x.event_type_value == 'STEP_MATERIALIZATION'
        ][0].event_specific_data.materialization.path

        reexecution_solid = define_dagstermill_solid('hello_world_reexecution',
                                                     output_notebook_path)

        reexecution_pipeline = PipelineDefinition([reexecution_solid])

        reexecution_result = execute_pipeline(reexecution_pipeline)
        assert reexecution_result.success

    finally:
        cleanup_result_notebook(result)
        cleanup_result_notebook(reexecution_result)
Ejemplo n.º 3
0
def test_hello_world():
    result = execute_pipeline(define_hello_world_pipeline())
    assert result.success
Ejemplo n.º 4
0
def test_hello_world():
    try:
        result = execute_pipeline(define_hello_world_pipeline())
        assert result.success
    finally:
        cleanup_result_notebook(result)
Ejemplo n.º 5
0
def test_hello_world():
    with exec_for_test(define_hello_world_pipeline()) as result:
        assert result.success