Skip to content

Commit

Permalink
refactor: use hooks in FreshnessTask.get_hooks_by_type
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Apr 29, 2024
1 parent 1de3b01 commit 8b42642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/task/freshness.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def task_end_messages(self, results):
def get_hooks_by_type(self, hook_type: RunHookType) -> List[HookNode]:
hooks = super().get_hooks_by_type(hook_type)
if self.args.source_freshness_run_project_hooks:
return super().get_hooks_by_type(hook_type)
return hooks

Check warning on line 246 in core/dbt/task/freshness.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/freshness.py#L246

Added line #L246 was not covered by tests
else:
if hooks:
deprecations.warn("source-freshness-project-hooks")

Check warning on line 249 in core/dbt/task/freshness.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/freshness.py#L249

Added line #L249 was not covered by tests
Expand Down

0 comments on commit 8b42642

Please sign in to comment.