Skip to content

Commit 8b9dedb

Browse files
committed
.
1 parent 722195f commit 8b9dedb

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

tests/test_data_collection.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def test_http_headers_collection_defaults():
4242

4343

4444
def 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

6464
def 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

0 commit comments

Comments
 (0)