2828 get_env_variable_name ,
2929 set_config_value ,
3030)
31+ from snowflake .cli .api .config_provider import is_alternative_config_enabled
3132from snowflake .cli .api .exceptions import MissingConfigurationError
3233
3334from tests .testing_utils .files_and_dirs import assert_file_permissions_are_strict
3435from tests_common import IS_WINDOWS
3536
3637
37- def is_config_ng_enabled ():
38- """Check if config_ng is enabled via environment variable"""
39- return os .getenv ("SNOWFLAKE_CLI_CONFIG_V2_ENABLED" ) == "true"
40-
41-
4238def test_empty_config_file_is_created_if_not_present ():
4339 from snowflake .cli .api .utils .path_utils import path_resolver
4440
@@ -390,7 +386,7 @@ def assert_correct_connections_loaded():
390386
391387# Legacy version - skip when config_ng is enabled
392388@pytest .mark .skipif (
393- is_config_ng_enabled (),
389+ is_alternative_config_enabled (),
394390 reason = "Legacy behavior: connections.toml replaces all connections from config.toml" ,
395391)
396392def test_connections_toml_override_config_toml_legacy (
@@ -413,7 +409,7 @@ def test_connections_toml_override_config_toml_legacy(
413409
414410# Config_ng version - skip when config_ng is NOT enabled
415411@pytest .mark .skipif (
416- not is_config_ng_enabled (),
412+ not is_alternative_config_enabled (),
417413 reason = "Config_ng behavior: connections.toml merges with config.toml per-key" ,
418414)
419415def test_connections_toml_override_config_toml_config_ng (
0 commit comments