Skip to content

Commit cf8629d

Browse files
committed
add to tests
1 parent b01ad06 commit cf8629d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

tests/test_logs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ def test_transport_format(sentry_init, capture_envelopes):
466466
"content_type": "application/vnd.sentry.items.log+json",
467467
}
468468
assert item.payload.json == {
469+
"version": 2,
469470
"items": [
470471
{
471472
"body": "This is a log...",
@@ -504,7 +505,7 @@ def test_transport_format(sentry_init, capture_envelopes):
504505
},
505506
},
506507
}
507-
]
508+
],
508509
}
509510

510511

tests/test_metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def test_transport_format(sentry_init, capture_envelopes):
267267
"content_type": "application/vnd.sentry.items.trace-metric+json",
268268
}
269269
assert item.payload.json == {
270+
"version": 2,
270271
"items": [
271272
{
272273
"name": "test.counter",
@@ -297,7 +298,7 @@ def test_transport_format(sentry_init, capture_envelopes):
297298
},
298299
},
299300
}
300-
]
301+
],
301302
}
302303

303304

tests/tracing/test_span_batcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ def test_transport_format(sentry_init, capture_envelopes):
406406
"content_type": "application/vnd.sentry.items.span.v2+json",
407407
}
408408
assert item.payload.json == {
409+
"version": 2,
409410
"items": [
410411
{
411412
"trace_id": mock.ANY,
@@ -417,7 +418,7 @@ def test_transport_format(sentry_init, capture_envelopes):
417418
"end_timestamp": mock.ANY,
418419
"attributes": mock.ANY,
419420
}
420-
]
421+
],
421422
}
422423
for attribute, value in item.payload.json["items"][0]["attributes"].items():
423424
assert isinstance(attribute, str)

0 commit comments

Comments
 (0)