Skip to content

Commit

Permalink
Update python_modules/libraries/dagster-dbt/dagster_dbt_tests/core/te…
Browse files Browse the repository at this point in the history
…st_asset_decorator.py

Co-authored-by: Rex Ledesma <[email protected]>
  • Loading branch information
prha and rexledesma committed May 30, 2024
1 parent 014e8f1 commit 8bfc58a
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,9 @@ def test_retry_policy(
test_jaffle_shop_manifest: Dict[str, Any],
retry_policy: Optional[RetryPolicy],
) -> None:
class CustomDagsterDbtTranslator(DagsterDbtTranslator):
def get_freshness_policy(self, _: Mapping[str, Any]) -> Optional[FreshnessPolicy]:
# Disable freshness policies when using static partitions
return None

@dbt_assets(
manifest=test_jaffle_shop_manifest,
retry_policy=retry_policy,
dagster_dbt_translator=CustomDagsterDbtTranslator(),
)
def my_dbt_assets(): ...

Expand Down

0 comments on commit 8bfc58a

Please sign in to comment.