Exemplo n.º 1
0
def test_run_op(
    dbt_seed, conn_string, test_project_dir, dbt_config_dir
):  # pylint: disable=unused-argument

    dbt_resource = dbt_cli_resource.configured(
        {"project_dir": test_project_dir, "profiles_dir": dbt_config_dir}
    )
    dbt_results = list(dbt_run_op(build_op_context(resources={"dbt": dbt_resource})))

    # includes asset materializations
    assert len(dbt_results) == 5

    assert len(dbt_results[-1].value.result["results"]) == 4
Exemplo n.º 2
0
 def run_test_job():
     dbt_test_op(start_after=dbt_run_op())
Exemplo n.º 3
0
 def my_dbt():
     dbt_run_op()
Exemplo n.º 4
0
 def my_dbt_job():
     dbt_run_op()