Skip to content

Commit 8062aa3

Browse files
committed
Updated ariadne tests
1 parent 8c957c6 commit 8062aa3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/integrations/ariadne/test_ariadne.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def test_capture_request_and_response_if_send_pii_is_on_async(
6868
assert len(events) == 1
6969

7070
(event,) = events
71-
assert event["exception"]["values"][0]["mechanism"]["type"] == "ariadne"
71+
assert event["exception"]["values"][0]["mechanism"]["type"] == "chained"
72+
assert event["exception"]["values"][-1]["mechanism"]["type"] == "ariadne"
7273
assert event["contexts"]["response"] == {
7374
"data": {
7475
"data": {"error": None},
@@ -111,7 +112,9 @@ def graphql_server():
111112
assert len(events) == 1
112113

113114
(event,) = events
114-
assert event["exception"]["values"][0]["mechanism"]["type"] == "ariadne"
115+
assert event["exception"]["values"][0]["mechanism"]["type"] == "chained"
116+
assert event["exception"]["values"][-1]["mechanism"]["type"] == "ariadne"
117+
115118
assert event["contexts"]["response"] == {
116119
"data": {
117120
"data": {"error": None},
@@ -152,7 +155,9 @@ def test_do_not_capture_request_and_response_if_send_pii_is_off_async(
152155
assert len(events) == 1
153156

154157
(event,) = events
155-
assert event["exception"]["values"][0]["mechanism"]["type"] == "ariadne"
158+
assert event["exception"]["values"][0]["mechanism"]["type"] == "chained"
159+
assert event["exception"]["values"][-1]["mechanism"]["type"] == "ariadne"
160+
156161
assert "data" not in event["request"]
157162
assert "response" not in event["contexts"]
158163

@@ -182,7 +187,8 @@ def graphql_server():
182187
assert len(events) == 1
183188

184189
(event,) = events
185-
assert event["exception"]["values"][0]["mechanism"]["type"] == "ariadne"
190+
assert event["exception"]["values"][0]["mechanism"]["type"] == "chained"
191+
assert event["exception"]["values"][-1]["mechanism"]["type"] == "ariadne"
186192
assert "data" not in event["request"]
187193
assert "response" not in event["contexts"]
188194

0 commit comments

Comments
 (0)