Skip to content

Commit

Permalink
update code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed Jun 13, 2024
1 parent 928e63f commit fa98fbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/dbt/task/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,15 @@ def execute_data_test(self, data_test: TestNode, manifest: Manifest) -> TestResu
raise DbtInternalError(
"Invalid materialization context generated, missing config: {}".format(context)
)

# generate materialization macro
macro_func = MacroGenerator(materialization_macro, context)
try:

Check warning on line 147 in core/dbt/task/test.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/test.py#L147

Added line #L147 was not covered by tests
# execute materialization macro
macro_func()

Check warning on line 149 in core/dbt/task/test.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/test.py#L149

Added line #L149 was not covered by tests
finally:
self.adapter.post_model_hook(context, hook_ctx)

Check warning on line 151 in core/dbt/task/test.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/test.py#L151

Added line #L151 was not covered by tests

# load results from context
# could eventually be returned directly by materialization
result = context["load_result"]("main")
Expand Down Expand Up @@ -218,6 +220,7 @@ def execute_unit_test(
raise DbtInternalError(
"Invalid materialization context generated, missing config: {}".format(context)
)

# generate materialization macro
macro_func = MacroGenerator(materialization_macro, context)
try:
Expand Down

0 comments on commit fa98fbd

Please sign in to comment.