Skip to content

Commit 1365d63

Browse files
committed
SNOW-2306184: config refactor - old & new unit tests
1 parent abbf282 commit 1365d63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests_integration/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ def invoke(self, *a, **kw):
120120
kw.update(catch_exceptions=False)
121121
kw = self._with_env_vars(kw)
122122

123+
# Reset config provider to ensure fresh config resolution
124+
# This is critical for tests that set environment variables
125+
from snowflake.cli.api.config_provider import reset_config_provider
126+
127+
reset_config_provider()
128+
123129
# between every invocation, we need to reset the CLI context
124130
# and ensure no connections are cached going forward (to prevent
125131
# test cases from impacting each other / align with CLI usage)

0 commit comments

Comments
 (0)