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
def run_test_job(): dbt_test_op(start_after=dbt_run_op())
def my_dbt(): dbt_run_op()
def my_dbt_job(): dbt_run_op()