Skip to content

Commit

Permalink
SNOW-1011771: precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-davwang committed Feb 26, 2024
1 parent 2641e68 commit 09a9606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/snowflake/cli/plugins/snowpark/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
@app.command("deploy", requires_connection=True)
@with_project_definition("snowpark")
def deploy(
replace: bool = ReplaceOption(help="Replaces procedure or function, even if no detected changes to metadata"),
replace: bool = ReplaceOption(
help="Replaces procedure or function, even if no detected changes to metadata"
),
**options,
) -> CommandResult:
"""
Expand Down
6 changes: 3 additions & 3 deletions tests/spcs/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ def test_create_service_already_exists(mock_handle, mock_execute, mock_read_yaml
SPCS_OBJECT_EXISTS_ERROR, ObjectType.SERVICE, service_name
)

@patch(
"snowflake.cli.plugins.spcs.services.manager.ServiceManager._execute_query"
)

@patch("snowflake.cli.plugins.spcs.services.manager.ServiceManager._execute_query")
def test_create_service_if_not_exists(mock_execute_query, other_directory):
cursor = Mock(spec=SnowflakeCursor)
mock_execute_query.return_value = cursor
Expand Down Expand Up @@ -267,6 +266,7 @@ def test_create_service_if_not_exists(mock_execute_query, other_directory):
assert expected_query == actual_query
assert result == cursor


@patch("snowflake.cli.plugins.spcs.services.manager.ServiceManager._execute_query")
def test_status(mock_execute_query):
service_name = "test_service"
Expand Down

0 comments on commit 09a9606

Please sign in to comment.