2020 get_signature ,
2121)
2222from snowflake .snowpark .functions import call_udf , col , count_distinct , sproc , udf
23- from snowflake .snowpark .session import ANACONDA_SHARED_REPOSITORY
23+ from snowflake .snowpark .session import _ANACONDA_SHARED_REPOSITORY
2424from snowflake .snowpark .types import DateType , StringType
2525from tests .utils import IS_IN_STORED_PROC , TempObjectType , TestFiles , Utils
2626
@@ -271,7 +271,7 @@ def extract_major_minor_patch(version_string):
271271
272272 resolved_packages = session ._resolve_packages (
273273 [numpy , pandas , dateutil ],
274- ANACONDA_SHARED_REPOSITORY ,
274+ _ANACONDA_SHARED_REPOSITORY ,
275275 {},
276276 validate_package = False ,
277277 )
@@ -1208,13 +1208,13 @@ def test_replicate_local_environment(session):
12081208 [
12091209 package .startswith ("cloudpickle" )
12101210 for package in session ._artifact_repository_packages [
1211- ANACONDA_SHARED_REPOSITORY
1211+ _ANACONDA_SHARED_REPOSITORY
12121212 ]
12131213 ]
12141214 )
12151215
12161216 def naive_add_packages (self , packages ):
1217- self ._artifact_repository_packages [ANACONDA_SHARED_REPOSITORY ] = packages
1217+ self ._artifact_repository_packages [_ANACONDA_SHARED_REPOSITORY ] = packages
12181218
12191219 with patch .object (session , "_is_anaconda_terms_acknowledged" , lambda : True ):
12201220 with patch .object (Session , "add_packages" , new = naive_add_packages ):
@@ -1232,7 +1232,7 @@ def naive_add_packages(self, packages):
12321232 [
12331233 package .startswith ("cloudpickle==" )
12341234 for package in session ._artifact_repository_packages [
1235- ANACONDA_SHARED_REPOSITORY
1235+ _ANACONDA_SHARED_REPOSITORY
12361236 ]
12371237 ]
12381238 )
@@ -1241,7 +1241,7 @@ def naive_add_packages(self, packages):
12411241 [
12421242 package .startswith (default_package )
12431243 for package in session ._artifact_repository_packages [
1244- ANACONDA_SHARED_REPOSITORY
1244+ _ANACONDA_SHARED_REPOSITORY
12451245 ]
12461246 ]
12471247 )
@@ -1266,7 +1266,7 @@ def naive_add_packages(self, packages):
12661266 [
12671267 package == "cloudpickle"
12681268 for package in session ._artifact_repository_packages [
1269- ANACONDA_SHARED_REPOSITORY
1269+ _ANACONDA_SHARED_REPOSITORY
12701270 ]
12711271 ]
12721272 )
@@ -1275,7 +1275,7 @@ def naive_add_packages(self, packages):
12751275 [
12761276 package .startswith (default_package )
12771277 for package in session ._artifact_repository_packages [
1278- ANACONDA_SHARED_REPOSITORY
1278+ _ANACONDA_SHARED_REPOSITORY
12791279 ]
12801280 ]
12811281 )
@@ -1284,7 +1284,7 @@ def naive_add_packages(self, packages):
12841284 [
12851285 package .startswith (ignored_package )
12861286 for package in session ._artifact_repository_packages [
1287- ANACONDA_SHARED_REPOSITORY
1287+ _ANACONDA_SHARED_REPOSITORY
12881288 ]
12891289 ]
12901290 )
0 commit comments