File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ def test_http_headers_collection_defaults():
4242
4343
4444def test_http_headers_use_default_in_setting_with_missing_config ():
45- data_collection_config : "DataCollectionUserOptions" = {
46- "http_headers" : {
47- "request" : {"mode" : "allow_list" , "terms" : ["x-id" ]},
45+ sentry_sdk .init (
46+ data_collection = {
47+ "http_headers" : {
48+ "request" : {"mode" : "allow_list" , "terms" : ["x-id" ]},
49+ }
4850 }
49- }
50-
51- sentry_sdk .init (data_collection = data_collection_config )
51+ )
5252
5353 client = sentry_sdk .get_client ()
5454
@@ -62,14 +62,14 @@ def test_http_headers_use_default_in_setting_with_missing_config():
6262
6363
6464def test_http_headers_both_set ():
65- data_collection_config : "DataCollectionUserOptions" = {
66- "http_headers" : {
67- "request" : {"mode" : "allow_list" , "terms" : ["x-id" ]},
68- "response" : {"mode" : "allow_list" , "terms" : ["foo" ]},
65+ sentry_sdk .init (
66+ data_collection = {
67+ "http_headers" : {
68+ "request" : {"mode" : "allow_list" , "terms" : ["x-id" ]},
69+ "response" : {"mode" : "allow_list" , "terms" : ["foo" ]},
70+ }
6971 }
70- }
71-
72- sentry_sdk .init (data_collection = data_collection_config )
72+ )
7373
7474 client = sentry_sdk .get_client ()
7575
You can’t perform that action at this time.
0 commit comments