Skip to content

Commit 9d7f3a0

Browse files
authored
Chore: add pre and post hook to dbt fixture (#5372)
1 parent 5eaf015 commit 9d7f3a0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/fixtures/dbt/sushi_test/models/schema.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ models:
2020
error_after: {count: 9, period: hour}
2121
- name: waiters
2222
description: '{{ doc("waiters") }}'
23+
config:
24+
# Exercise pre and post hooks
25+
pre_hook:
26+
- SELECT 1
27+
post_hook:
28+
- SELECT 1
2329
- name: waiter_as_customer_by_day
2430
- name: waiter_revenue_by_day
2531
versions:
@@ -71,4 +77,4 @@ metrics:
7177
type: simple
7278
label: testing
7379
type_params:
74-
measure: total_waiters
80+
measure: total_waiters

0 commit comments

Comments
 (0)