@@ -51,6 +51,8 @@ def test_no_var_profiles_generation(self):
5151 "pathlib.Path.cwd" , lambda : self .goldens_dir_path
5252 ), tempfile .TemporaryDirectory () as tmp_dir2 , patch (
5353 "pathlib.Path.home" , lambda : pathlib .Path (tmp_dir2 )
54+ ), patch (
55+ "data_pipelines_cli.dbt_utils.subprocess_run" , lambda _args : None
5456 ):
5557 runner .invoke (_cli , ["prepare-env" ])
5658 with open (
@@ -80,6 +82,8 @@ def test_vars_profiles_generation(self):
8082 "pathlib.Path.cwd" , lambda : self .goldens_dir_path
8183 ), tempfile .TemporaryDirectory () as tmp_dir2 , patch (
8284 "pathlib.Path.home" , lambda : pathlib .Path (tmp_dir2 )
85+ ), patch (
86+ "data_pipelines_cli.dbt_utils.subprocess_run" , lambda _args : None
8387 ):
8488 prepare_env ("staging" )
8589
@@ -105,6 +109,8 @@ def test_raise_missing_variable(self):
105109 "pathlib.Path.cwd" , lambda : self .goldens_dir_path
106110 ), tempfile .TemporaryDirectory () as tmp_dir2 , patch (
107111 "pathlib.Path.home" , lambda : pathlib .Path (tmp_dir2 )
112+ ), patch (
113+ "data_pipelines_cli.dbt_utils.subprocess_run" , lambda _args : None
108114 ):
109115 with self .assertRaises (JinjaVarKeyError ):
110116 prepare_env ("staging" )
@@ -124,6 +130,8 @@ def test_raise_missing_environment_variable(self):
124130 "pathlib.Path.cwd" , lambda : self .goldens_dir_path
125131 ), tempfile .TemporaryDirectory () as tmp_dir2 , patch (
126132 "pathlib.Path.home" , lambda : pathlib .Path (tmp_dir2 )
133+ ), patch (
134+ "data_pipelines_cli.dbt_utils.subprocess_run" , lambda _args : None
127135 ):
128136 with self .assertRaises (JinjaVarKeyError ):
129137 prepare_env ("staging" )
0 commit comments