Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astus committed Dec 13, 2024
1 parent 385b3af commit c15cca5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/snowflake/cli/_plugins/streamlit/streamlit_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
],
)
Expand Down
2 changes: 1 addition & 1 deletion tests/streamlit/test_streamlit_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit c15cca5

Please sign in to comment.