Skip to content

Commit

Permalink
Fix local test test_saving_remote (#2707)
Browse files Browse the repository at this point in the history
Signed-off-by: Mecoli1219 <[email protected]>
  • Loading branch information
Mecoli1219 committed Aug 23, 2024
1 parent 0f42872 commit a50eb4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/flytekit/unit/cli/pyflyte/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def test_get_remote(mock_remote, mock_config_file, reset_flytectl_config_env_var
)


@mock.patch("flytekit.configuration.plugin.get_config_file")
@mock.patch("flytekit.configuration.plugin.FlyteRemote")
def test_saving_remote(mock_remote):
def test_saving_remote(mock_remote, mock_config_file):
mock_config_file.return_value = None
mock_context = mock.MagicMock
mock_context.obj = {}
get_and_save_remote_with_click_context(mock_context, "p", "d")
Expand Down

0 comments on commit a50eb4b

Please sign in to comment.