@@ -639,17 +639,6 @@ def test_cannot_set_dependent_params_without_wlid_authenticator(
639639 )
640640
641641
642- def test_cannot_set_wlid_authenticator_without_env_variable (mock_post_requests ):
643- with pytest .raises (ProgrammingError ) as excinfo :
644- snowflake .connector .connect (
645- account = "account" , authenticator = "WORKLOAD_IDENTITY"
646- )
647- assert (
648- "Please set the 'SF_ENABLE_EXPERIMENTAL_AUTHENTICATION' environment variable true to use the 'WORKLOAD_IDENTITY' authenticator"
649- in str (excinfo .value )
650- )
651-
652-
653642@pytest .mark .parametrize (
654643 "provider_param" ,
655644 [
@@ -665,7 +654,6 @@ def test_workload_identity_provider_is_required_for_wif_authenticator(
665654 m .setattr (
666655 "snowflake.connector.SnowflakeConnection._authenticate" , lambda * _ : None
667656 )
668- m .setenv ("SF_ENABLE_EXPERIMENTAL_AUTHENTICATION" , "true" )
669657
670658 with pytest .raises (ProgrammingError ) as excinfo :
671659 snowflake .connector .connect (
@@ -701,7 +689,6 @@ def test_connection_params_are_plumbed_into_authbyworkloadidentity(
701689 m .setattr (
702690 "snowflake.connector.SnowflakeConnection._authenticate" , lambda * _ : None
703691 )
704- m .setenv ("SF_ENABLE_EXPERIMENTAL_AUTHENTICATION" , "true" )
705692
706693 conn = snowflake .connector .connect (
707694 account = "my_account_1" ,
@@ -743,7 +730,6 @@ def test_toml_connection_params_are_plumbed_into_authbyworkloadidentity(
743730 m .setattr (
744731 "snowflake.connector.SnowflakeConnection._authenticate" , lambda * _ : None
745732 )
746- m .setenv ("SF_ENABLE_EXPERIMENTAL_AUTHENTICATION" , "true" )
747733
748734 conn = snowflake .connector .connect (connections_file_path = connections_file )
749735 assert conn .auth_class .provider == AttestationProvider .OIDC
@@ -762,7 +748,6 @@ def test_single_use_refresh_tokens_option_is_plumbed_into_authbyauthcode(
762748 m .setattr (
763749 "snowflake.connector.SnowflakeConnection._authenticate" , lambda * _ : None
764750 )
765- m .setenv ("SF_ENABLE_EXPERIMENTAL_AUTHENTICATION" , "true" )
766751
767752 conn = snowflake .connector .connect (
768753 account = "my_account_1" ,
0 commit comments