@@ -91,8 +91,6 @@ def test_set_test_env_override_clear_specific():
9191 assert _get_env_bool ("TEST_B" ) is True
9292
9393
94-
95-
9694def test_resolve_feature_flags_ga_enabled_via_env ():
9795 """Verify that a GA feature is enabled if its environment variable is True."""
9896 # Setup: We pass a GA environment variable set to True
@@ -102,7 +100,7 @@ def test_resolve_feature_flags_ga_enabled_via_env():
102100 result = options .resolve_feature_flags (
103101 env_var = "GOOGLE_SDK_PYTHON_TRACING_ENABLED" ,
104102 provider_key = "tracer_provider" ,
105- client_options = None
103+ client_options = None ,
106104 )
107105
108106 # Assertion
@@ -121,7 +119,7 @@ def test_resolve_feature_flags_exp_blocked_with_provider_fails_fast(gate_value):
121119 options .resolve_feature_flags (
122120 env_var = "GOOGLE_SDK_EXPERIMENTAL_PYTHON_TRACING_ENABLED" ,
123121 provider_key = "tracer_provider" ,
124- client_options = client_options
122+ client_options = client_options ,
125123 )
126124
127125
@@ -133,7 +131,7 @@ def test_resolve_feature_flags_exp_enabled_with_provider():
133131 result = options .resolve_feature_flags (
134132 env_var = "GOOGLE_SDK_EXPERIMENTAL_PYTHON_TRACING_ENABLED" ,
135133 provider_key = "tracer_provider" ,
136- client_options = client_options
134+ client_options = client_options ,
137135 )
138136 assert result is True
139137
@@ -147,19 +145,21 @@ def test_resolve_feature_flags_ga_enabled_via_provider():
147145 result = options .resolve_feature_flags (
148146 env_var = "GOOGLE_SDK_PYTHON_TRACING_ENABLED" ,
149147 provider_key = "tracer_provider" ,
150- client_options = client_options
148+ client_options = client_options ,
151149 )
152150 assert result is True
153151
154152
155- @pytest .mark .parametrize ("env_val" , [None , False ], ids = ["env_not_set" , "env_explicit_false" ])
153+ @pytest .mark .parametrize (
154+ "env_val" , [None , False ], ids = ["env_not_set" , "env_explicit_false" ]
155+ )
156156def test_resolve_feature_flags_ga_fallback_to_false (env_val ):
157157 """Verify that a GA feature returns False if no flags are present."""
158158 set_test_env_override ("GOOGLE_SDK_PYTHON_TRACING_ENABLED" , env_val )
159159 result = options .resolve_feature_flags (
160160 env_var = "GOOGLE_SDK_PYTHON_TRACING_ENABLED" ,
161161 provider_key = "tracer_provider" ,
162- client_options = None
162+ client_options = None ,
163163 )
164164 assert result is False
165165
@@ -175,14 +175,14 @@ def __init__(self):
175175 {"other_option" : "value" },
176176 _MockOptions (),
177177 ],
178- ids = ["dict_without_key" , "object_without_key" ]
178+ ids = ["dict_without_key" , "object_without_key" ],
179179)
180180def test_resolve_feature_flags_options_without_key (client_options ):
181181 """Verify behavior when client_options is present but missing the provider key."""
182182 # GA Path: should fall through to env var / fallback
183183 result = options .resolve_feature_flags (
184184 env_var = "GOOGLE_SDK_PYTHON_TRACING_ENABLED" ,
185185 provider_key = "tracer_provider" ,
186- client_options = client_options
186+ client_options = client_options ,
187187 )
188188 assert result is False
0 commit comments