@@ -88,7 +88,6 @@ def test_get_models_bad_lower_dbt_version(self, mock_open):
8888 with self .assertRaises (Exception ) as ex :
8989 DbtParser .get_models (mock_self )
9090
91-
9291 mock_open .assert_called_once_with (Path (RUN_RESULTS_PATH ))
9392 mock_self .parse_run_results .assert_called_once_with (run_results = {})
9493 mock_self .parse_manifest .assert_not_called ()
@@ -105,7 +104,6 @@ def test_get_models_bad_upper_dbt_version(self, mock_open):
105104 with self .assertRaises (Exception ) as ex :
106105 DbtParser .get_models (mock_self )
107106
108-
109107 mock_open .assert_called_once_with (Path (RUN_RESULTS_PATH ))
110108 mock_self .parse_run_results .assert_called_once_with (run_results = {})
111109 mock_self .parse_manifest .assert_not_called ()
@@ -131,7 +129,6 @@ def test_get_models_no_success(self, mock_open):
131129 with self .assertRaises (Exception ):
132130 DbtParser .get_models (mock_self )
133131
134-
135132 mock_open .assert_any_call (Path (RUN_RESULTS_PATH ))
136133 mock_open .assert_any_call (Path (MANIFEST_PATH ))
137134 mock_self .parse_run_results .assert_called_once_with (run_results = {})
@@ -199,7 +196,6 @@ def test_set_connection_snowflake_no_password(self, mock_open_file):
199196 with self .assertRaises (Exception ):
200197 DbtParser .set_connection (mock_self )
201198
202-
203199 mock_open_file .assert_called_once_with (Path (PROFILES_FILE ))
204200 mock_self .yaml .safe_load .assert_called_once_with (mock_open_file ())
205201 self .assertNotIsInstance (mock_self .connection , dict )
@@ -266,7 +262,6 @@ def test_set_connection_bigquery_not_oauth(self, mock_open_file):
266262 with self .assertRaises (Exception ):
267263 DbtParser .set_connection (mock_self )
268264
269-
270265 mock_open_file .assert_called_once_with (Path (PROFILES_FILE ))
271266 mock_self .yaml .safe_load .assert_called_once_with (mock_open_file ())
272267 self .assertNotIsInstance (mock_self .connection , dict )
@@ -294,7 +289,6 @@ def test_set_connection_key_error(self, mock_open_file):
294289 with self .assertRaises (Exception ):
295290 DbtParser .set_connection (mock_self )
296291
297-
298292 mock_open_file .assert_called_once_with (Path (PROFILES_FILE ))
299293 mock_self .yaml .safe_load .assert_called_once_with (mock_open_file ())
300294 self .assertNotIsInstance (mock_self .connection , dict )
@@ -322,7 +316,6 @@ def test_set_connection_not_implemented(self, mock_open_file):
322316 with self .assertRaises (NotImplementedError ):
323317 DbtParser .set_connection (mock_self )
324318
325-
326319 mock_open_file .assert_called_once_with (Path (PROFILES_FILE ))
327320 mock_self .yaml .safe_load .assert_called_once_with (mock_open_file ())
328321 self .assertNotIsInstance (mock_self .connection , dict )
0 commit comments