File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 44
44
description: hello
45
45
constraints:
46
46
- type: not_null
47
- - type: primary_key
48
47
- type: unique
49
48
- type: check
50
49
expression: (id > 0)
92
91
description: hello
93
92
constraints:
94
93
- type: not_null
95
- - type: primary_key
96
94
- type: check
97
95
expression: (id > 0)
98
96
tests:
Original file line number Diff line number Diff line change @@ -84,17 +84,14 @@ def copy_state(self, project_root):
84
84
def run_and_save_state (self , project_root , with_snapshot = False ):
85
85
results = run_dbt (["seed" ])
86
86
assert len (results ) == 1
87
- assert not any (r .node .deferred for r in results )
88
87
results = run_dbt (["run" ])
89
88
assert len (results ) == 2
90
- assert not any (r .node .deferred for r in results )
91
89
results = run_dbt (["test" ])
92
90
assert len (results ) == 2
93
91
94
92
if with_snapshot :
95
93
results = run_dbt (["snapshot" ])
96
94
assert len (results ) == 1
97
- assert not any (r .node .deferred for r in results )
98
95
99
96
# copy files
100
97
self .copy_state (project_root )
Original file line number Diff line number Diff line change
1
+ import json
2
+
1
3
from dbt .tests .adapter .query_comment .test_query_comment import (
2
4
BaseEmptyQueryComments ,
3
5
BaseMacroArgsQueryComments ,
6
8
BaseNullQueryComments ,
7
9
BaseQueryComments ,
8
10
)
9
- from dbt .version import __version__ as dbt_version
10
- import json
11
11
12
12
13
13
# Tests #
@@ -20,11 +20,10 @@ class TestMacroQueryComments(BaseMacroQueryComments):
20
20
21
21
22
22
class TestMacroArgsQueryComments (BaseMacroArgsQueryComments ):
23
- def test_matches_comment (self , project ) -> bool :
23
+ def test_matches_comment (self , project ):
24
24
logs = self .run_get_json ()
25
25
expected_dct = {
26
26
"app" : "dbt++" ,
27
- "dbt_version" : dbt_version ,
28
27
"macro_version" : "0.1.0" ,
29
28
"message" : f"blah: { project .adapter .config .target_name } " ,
30
29
}
You can’t perform that action at this time.
0 commit comments