With dbt's unit-test feature, dbt may not populate the graph when running dbt test -s model_to_test. This will result in an error in register_upstream_external_models:
on-run-start failed, error:
'dict object' has no attribute 'unit_test.project_name.model_name.test_name'
This change checks if a node is present before looking for its dependencies.
With dbt's unit-test feature, dbt may not populate the graph when running
dbt test -s model_to_test
. This will result in an error inregister_upstream_external_models
:This change checks if a node is present before looking for its dependencies.