Skip to content

Commit

Permalink
Fix local test test_get_remote (#2706)
Browse files Browse the repository at this point in the history
Signed-off-by: Mecoli1219 <michaellai901026@gmail.com>
  • Loading branch information
Mecoli1219 authored Aug 23, 2024
1 parent 94148df commit 0f42872
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 @@ -48,8 +48,10 @@ def reset_flytectl_config_env_var() -> pytest.fixture():
return os.environ[FLYTECTL_CONFIG_ENV_VAR]


@mock.patch("flytekit.configuration.plugin.get_config_file")
@mock.patch("flytekit.configuration.plugin.FlyteRemote")
def test_get_remote(mock_remote, reset_flytectl_config_env_var):
def test_get_remote(mock_remote, mock_config_file, reset_flytectl_config_env_var):
mock_config_file.return_value = None
r = FlytekitPlugin.get_remote(None, "p", "d")
assert r is not None
mock_remote.assert_called_once_with(
Expand Down

0 comments on commit 0f42872

Please sign in to comment.