File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
tests/fixtures/dbt/sushi_test/models Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 11version : 2
22
33models :
4+ - name : simple_model_a
5+ description : A simple model for testing
6+ columns :
7+ - name : a
8+ data_type : int
9+ unit_tests :
10+ - name : test_simple_model_a_outputs_one
11+ description : Test that simple_model_a outputs 1 as column a
12+ model : simple_model_a
13+ given : [] # No input models needed
14+ expect :
15+ format : csv
16+ rows : |
17+ a
18+ 1
19+ - name : simple_model_b
20+ description : Model that references simple_model_a
21+ columns :
22+ - name : a
23+ data_type : int
24+ unit_tests :
25+ - name : test_simple_model_b_with_mock_input
26+ description : Test simple_model_b with mocked simple_model_a input
27+ model : simple_model_b
28+ given :
29+ - input : ref('simple_model_a')
30+ format : csv
31+ rows : |
32+ a
33+ 10
34+ 20
35+ 30
36+ expect :
37+ format : csv
38+ rows : |
39+ a
40+ 10
41+ 20
42+ 30
43+ - name : test_simple_model_b_with_sql_input
44+ description : Test simple_model_b with SQL-defined input data
45+ model : simple_model_b
46+ given :
47+ - input : ref('simple_model_a')
48+ format : sql
49+ rows : SELECT 42 AS a
50+ expect :
51+ format : sql
52+ rows : SELECT 42 AS a
453 - name : top_waiters
554 description : description of top waiters
655 columns :
You can’t perform that action at this time.
0 commit comments