Exemplo n.º 1
0
def test_all_airline_pipelines():
    download_config_object = load_yaml_from_globs(
        script_relative_path('../../environments/local_base.yml'),
        script_relative_path('../../environments/local_fast_download.yml'),
    )

    result_download = execute_pipeline(define_airline_demo_download_pipeline(),
                                       download_config_object)

    assert result_download.success

    ingest_config_object = load_yaml_from_globs(
        script_relative_path('../../environments/local_base.yml'),
        script_relative_path('../../environments/local_fast_ingest.yml'),
    )

    result_ingest = execute_pipeline(define_airline_demo_ingest_pipeline(),
                                     ingest_config_object)

    assert result_ingest.success

    warehouse_config_object = load_yaml_from_globs(
        script_relative_path('../../environments/local_base.yml'),
        script_relative_path('../../environments/local_fast_warehouse.yml'),
    )

    result_warehouse = execute_pipeline(
        define_airline_demo_warehouse_pipeline(), warehouse_config_object)
    assert result_warehouse.success
Exemplo n.º 2
0
def test_pipeline_ingest():
    config_object = load_yaml_from_glob_list([
        script_relative_path('../../environments/local_base.yml'),
        script_relative_path('../../environments/local_fast_ingest.yml'),
    ])

    result = execute_pipeline(define_airline_demo_ingest_pipeline(),
                              config_object)
    assert result.success
Exemplo n.º 3
0
def test_airline_pipeline_0_ingest(docker_compose_db):
    ingest_config_object = load_yaml_from_globs(
        script_relative_path('../environments/local_base.yml'),
        script_relative_path('../environments/local_fast_ingest.yml'),
    )

    result_ingest = execute_pipeline(define_airline_demo_ingest_pipeline(),
                                     ingest_config_object)

    assert result_ingest.success
Exemplo n.º 4
0
class TestAirflowPython_0IngestExecution:
    pipeline = define_airline_demo_ingest_pipeline()
    config_yaml = [
        script_relative_path(
            os.path.join('..', 'environments', 'local_base.yml')),
        script_relative_path(
            os.path.join('..', 'environments', 'local_airflow.yml')),
        script_relative_path(
            os.path.join('..', 'environments', 'local_fast_ingest.yml')),
    ]

    def test_airflow_run_ingest_pipeline(
            self, dagster_airflow_python_operator_pipeline):
        pass
Exemplo n.º 5
0
def test_construct_ingest_pipeline():
    assert define_airline_demo_ingest_pipeline()