@@ -35,7 +35,7 @@ def test_dbt_list(self, mock_connect, runner):
35
35
result = runner .invoke (["dbt" , "list" ])
36
36
37
37
assert result .exit_code == 0 , result .output
38
- assert mock_connect .mocked_ctx .get_query () == "SHOW DBT"
38
+ assert mock_connect .mocked_ctx .get_query () == "SHOW DBT PROJECT "
39
39
40
40
41
41
class TestDBTDeploy :
@@ -64,7 +64,7 @@ def test_deploys_project_from_source(
64
64
assert result .exit_code == 0 , result .output
65
65
assert (
66
66
mock_connect .mocked_ctx .get_query ()
67
- == "CREATE OR REPLACE DBT TEST_PIPELINE FROM @MockDatabase.MockSchema.dbt_TEST_PIPELINE_stage"
67
+ == "CREATE OR REPLACE DBT PROJECT TEST_PIPELINE FROM @MockDatabase.MockSchema.dbt_TEST_PIPELINE_stage"
68
68
)
69
69
stage_fqn = FQN .from_string (f"dbt_TEST_PIPELINE_stage" ).using_context ()
70
70
mock_create .assert_called_once_with (stage_fqn , temporary = True )
@@ -98,7 +98,7 @@ class TestDBTExecute:
98
98
"pipeline_name" ,
99
99
"test" ,
100
100
],
101
- "EXECUTE DBT pipeline_name test" ,
101
+ "EXECUTE DBT PROJECT pipeline_name test" ,
102
102
id = "simple-command" ,
103
103
),
104
104
pytest .param (
@@ -110,12 +110,12 @@ class TestDBTExecute:
110
110
"-f" ,
111
111
"--select @source:snowplow,tag:nightly models/export" ,
112
112
],
113
- "EXECUTE DBT pipeline_name run -f --select @source:snowplow,tag:nightly models/export" ,
113
+ "EXECUTE DBT PROJECT pipeline_name run -f --select @source:snowplow,tag:nightly models/export" ,
114
114
id = "with-dbt-options" ,
115
115
),
116
116
pytest .param (
117
117
["dbt" , "execute" , "pipeline_name" , "compile" , "--vars '{foo:bar}'" ],
118
- "EXECUTE DBT pipeline_name compile --vars '{foo:bar}'" ,
118
+ "EXECUTE DBT PROJECT pipeline_name compile --vars '{foo:bar}'" ,
119
119
id = "with-dbt-vars" ,
120
120
),
121
121
pytest .param (
@@ -131,7 +131,7 @@ class TestDBTExecute:
131
131
"--info" ,
132
132
"--config-file=/" ,
133
133
],
134
- "EXECUTE DBT pipeline_name compile --format=TXT -v -h --debug --info --config-file=/" ,
134
+ "EXECUTE DBT PROJECT pipeline_name compile --format=TXT -v -h --debug --info --config-file=/" ,
135
135
id = "with-dbt-conflicting-options" ,
136
136
),
137
137
pytest .param (
@@ -142,7 +142,7 @@ class TestDBTExecute:
142
142
"pipeline_name" ,
143
143
"compile" ,
144
144
],
145
- "EXECUTE DBT pipeline_name compile" ,
145
+ "EXECUTE DBT PROJECT pipeline_name compile" ,
146
146
id = "with-cli-flag" ,
147
147
),
148
148
],
0 commit comments