File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ def test_streamlit_grants_flow(
142
142
alter_snowflake_yml ,
143
143
):
144
144
"""Test that streamlit grants are properly applied during deployment."""
145
- # Use the session's default role (main CI role)
146
145
test_role = snowflake_session .role
147
146
entity_id = "app_1"
148
147
@@ -170,7 +169,6 @@ def test_streamlit_grants_experimental_flow(
170
169
alter_snowflake_yml ,
171
170
):
172
171
"""Test that streamlit grants are properly applied during experimental deployment."""
173
- # Use the session's default role (main CI role)
174
172
test_role = snowflake_session .role
175
173
entity_id = "app_1"
176
174
Original file line number Diff line number Diff line change @@ -184,15 +184,13 @@ def assert_proper_url_is_returned(
184
184
assert message .endswith (create_expected_url_suffix (entity_id , session ))
185
185
186
186
def verify_grants_applied (self , entity_id : str , test_role : str ):
187
- # Switch to test role and verify grants work
188
187
self .setup .sql_test_helper .execute_single_sql (f"USE ROLE { test_role } " )
189
188
streamlits_with_role = self .setup .sql_test_helper .execute_single_sql (
190
189
f"SHOW STREAMLITS LIKE '{ entity_id } '"
191
190
)
192
191
assert (
193
192
len (streamlits_with_role ) == 1
194
193
), f"Role { test_role } should have USAGE access to the streamlit"
195
- # No need to switch back since this is at the end of the test
196
194
197
195
198
196
def create_expected_url_suffix (entity_id : str , session : SnowflakeConnection ):
You can’t perform that action at this time.
0 commit comments