From c15cca502b782ff55c10d89f201fef5ff21bc1da Mon Sep 17 00:00:00 2001 From: Adam Stus Date: Fri, 13 Dec 2024 11:06:56 +0100 Subject: [PATCH] Fixes after rebase --- src/snowflake/cli/_plugins/streamlit/streamlit_entity.py | 6 ++++-- tests/streamlit/test_streamlit_entity.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py b/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py index 8a364c5517..ce01bef368 100644 --- a/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py +++ b/src/snowflake/cli/_plugins/streamlit/streamlit_entity.py @@ -33,7 +33,7 @@ def project_root(self) -> Path: @property def deploy_root(self) -> Path: - return self.project_root / "output" / "deploy" + return self.project_root / "output" / "bundle" / "streamlit" def action_bundle( self, @@ -47,7 +47,9 @@ def bundle(self, bundle_root=None): self.project_root, bundle_root or self.deploy_root, [ - PathMapping(src=str(artifact)) + PathMapping( + src=artifact.src, dest=artifact.dest, processors=artifact.processors + ) for artifact in self._entity_model.artifacts ], ) diff --git a/tests/streamlit/test_streamlit_entity.py b/tests/streamlit/test_streamlit_entity.py index 315e34b8e5..d1ba41ef2f 100644 --- a/tests/streamlit/test_streamlit_entity.py +++ b/tests/streamlit/test_streamlit_entity.py @@ -41,7 +41,7 @@ def test_nativeapp_children_interface(temp_dir): sl = StreamlitEntity(model, ctx) sl.bundle() - bundle_artifact = Path(temp_dir) / "output" / "deploy" / main_file + bundle_artifact = Path(temp_dir) / "output" / "bundle" / "streamlit" / main_file deploy_sql_str = sl.get_deploy_sql() grant_sql_str = sl.get_usage_grant_sql(app_role="app_role")