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

Commit fc7f266

Browse files
committed
mock keyring call
1 parent f989575 commit fc7f266

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_dbt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,12 +783,16 @@ def test_diff_is_cloud_no_ds_id(
783783
mock_local_diff.assert_not_called()
784784
mock_print.assert_called_once()
785785

786+
@patch("data_diff.dbt.keyring.get_password")
786787
@patch("data_diff.dbt._get_diff_vars")
787788
@patch("data_diff.dbt._local_diff")
788789
@patch("data_diff.dbt._cloud_diff")
789790
@patch("data_diff.dbt_parser.DbtParser.__new__")
790791
@patch("builtins.input", return_value="n")
791-
def test_diff_is_cloud_no_api_key(self, _, mock_dbt_parser, mock_cloud_diff, mock_local_diff, mock_get_diff_vars):
792+
def test_diff_is_cloud_no_api_key(
793+
self, _, mock_dbt_parser, mock_cloud_diff, mock_local_diff, mock_get_diff_vars, mock_get_password
794+
):
795+
mock_get_password.return_value = None
792796
mock_dbt_parser_inst = Mock()
793797
mock_model = Mock()
794798
config = TDatadiffConfig(prod_database="prod_db", prod_schema="prod_schema")

0 commit comments

Comments
 (0)