Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 35a2b6c

Browse files
committed
formatter
1 parent 78fc4ab commit 35a2b6c

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

data_diff/dbt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ def _cloud_diff(diff_vars: DiffVars) -> None:
274274

275275

276276
class DbtParser:
277-
278277
def __init__(self, profiles_dir_override: str, project_dir_override: str, is_cloud: bool) -> None:
279278
self.profiles_dir = Path(profiles_dir_override or default_profiles_dir())
280279
self.project_dir = Path(project_dir_override or default_project_dir())

tests/test_dbt.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)