示例#1
0
文件: test_ops.py 项目: keyz/dagster
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
示例#2
0
文件: test_ops.py 项目: keyz/dagster
 def run_test_job():
     dbt_test_op(start_after=dbt_run_op())
示例#3
0
文件: dbt.py 项目: trevenrawr/dagster
 def my_dbt():
     dbt_run_op()
示例#4
0
文件: dbt.py 项目: trevenrawr/dagster
 def my_dbt_job():
     dbt_run_op()