File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222LOCAL_TESTING_MODE = False
2323
2424sys .path .append ("tests/" )
25+ from integ .session_parameters import set_up_test_session_parameters # noqa: E402
26+
2527# get the absolute path of rsa private key files
2628params_file = os .path .abspath ("tests/parameters.py" )
2729with open ("tests/parameters.py" , encoding = "utf-8" ) as f :
@@ -67,6 +69,7 @@ def add_snowpark_session(doctest_namespace, pytestconfig):
6769 session .sql_simplifier_enabled = (
6870 os .environ .get ("USE_SQL_SIMPLIFIER" ) == "1" or LOCAL_TESTING_MODE
6971 )
72+ set_up_test_session_parameters (session , LOCAL_TESTING_MODE )
7073 if RUNNING_ON_GH :
7174 session .sql (f"CREATE SCHEMA IF NOT EXISTS { TEST_SCHEMA } " ).collect ()
7275 # This is needed for test_get_schema_database_works_after_use_role in test_session_suite
Original file line number Diff line number Diff line change @@ -1679,10 +1679,10 @@ def add_packages(
16791679 >>> import pandas
16801680 >>> import dateutil
16811681 >>> # add numpy with the latest version on Snowflake Anaconda
1682- >>> # and pandas with the version "2.1 .*"
1682+ >>> # and pandas with the version "2.3 .*"
16831683 >>> # and dateutil with the local version in your environment
16841684 >>> session.custom_package_usage_config = {"enabled": True} # This is added because latest dateutil is not in snowflake yet
1685- >>> session.add_packages("numpy", "pandas==2.2 .*", dateutil)
1685+ >>> session.add_packages("numpy", "pandas==2.3 .*", dateutil)
16861686 >>> @udf
16871687 ... def get_package_name_udf() -> list:
16881688 ... return [numpy.__name__, pandas.__name__, dateutil.__name__]
@@ -1739,7 +1739,7 @@ def remove_package(
17391739 >>> session.clear_packages()
17401740 >>> len(session.get_packages())
17411741 0
1742- >>> session.add_packages("numpy", "pandas==2.2 .*")
1742+ >>> session.add_packages("numpy", "pandas==2.3 .*")
17431743 >>> len(session.get_packages())
17441744 2
17451745 >>> session.remove_package("numpy")
You can’t perform that action at this time.
0 commit comments