@@ -61,8 +61,12 @@ def _test_as_list(env_key, conf_key, default):
6161 * _test_as_bool ("DD_TRACE_ENABLED" , "trace_enabled" , default = True ),
6262 * _test_as_bool ("DD_COLD_START_TRACING" , "cold_start_tracing" , default = True ),
6363 * _test_as_bool ("DD_TRACE_MANAGED_SERVICES" , "make_inferred_span" , default = True ),
64- * _test_as_bool ("DD_ENCODE_AUTHORIZER_CONTEXT" , "encode_authorizer_context" , default = True ),
65- * _test_as_bool ("DD_DECODE_AUTHORIZER_CONTEXT" , "decode_authorizer_context" , default = True ),
64+ * _test_as_bool (
65+ "DD_ENCODE_AUTHORIZER_CONTEXT" , "encode_authorizer_context" , default = True
66+ ),
67+ * _test_as_bool (
68+ "DD_DECODE_AUTHORIZER_CONTEXT" , "decode_authorizer_context" , default = True
69+ ),
6670 * _test_as_bool ("DD_FLUSH_IN_THREAD" , "flush_in_thread" , default = False ),
6771 * _test_as_bool ("DD_ENHANCED_METRICS" , "enhanced_metrics_enabled" , default = True ),
6872 * _test_as_bool ("DD_INTEGRATION_TEST" , "integration_test" , default = False ),
@@ -123,15 +127,21 @@ def test_config_from_environ(env_key, conf_key, env_val, conf_val, setenv):
123127_test_config_from_environ_depends_on_tracing = (
124128 * _test_as_bool ("DD_COLD_START_TRACING" , "cold_start_tracing" , default = True ),
125129 * _test_as_bool ("DD_TRACE_MANAGED_SERVICES" , "make_inferred_span" , default = True ),
126- * _test_as_bool ("DD_ENCODE_AUTHORIZER_CONTEXT" , "encode_authorizer_context" , default = True ),
127- * _test_as_bool ("DD_DECODE_AUTHORIZER_CONTEXT" , "decode_authorizer_context" , default = True ),
130+ * _test_as_bool (
131+ "DD_ENCODE_AUTHORIZER_CONTEXT" , "encode_authorizer_context" , default = True
132+ ),
133+ * _test_as_bool (
134+ "DD_DECODE_AUTHORIZER_CONTEXT" , "decode_authorizer_context" , default = True
135+ ),
128136)
129137
130138
131139@pytest .mark .parametrize (
132140 "env_key,conf_key,env_val,conf_val" , _test_config_from_environ_depends_on_tracing
133141)
134- def test_config_from_environ_depends_on_tracing (env_key , conf_key , env_val , conf_val , setenv ):
142+ def test_config_from_environ_depends_on_tracing (
143+ env_key , conf_key , env_val , conf_val , setenv
144+ ):
135145 setenv (env_key , env_val )
136146 setenv ("DD_TRACE_ENABLED" , "false" )
137147 assert getattr (config , conf_key ) is False
@@ -193,6 +203,7 @@ class Testing:
193203 test_4 = _get_env ("TEST_4" , "true" , bool , depends_on_tracing = True )
194204
195205 logs = []
206+
196207 def cap_warn (* args , ** kwargs ):
197208 logs .append (args )
198209
0 commit comments