Skip to content

Commit a38d725

Browse files
authored
chore(bottle): Remove transaction test (#7272)
This should not be needed anymore.
1 parent 9fc0720 commit a38d725

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

tests/integrations/bottle/test_bottle.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -771,33 +771,6 @@ def index():
771771
assert "data" not in event.get("_meta", {}).get("request", {})
772772

773773

774-
def test_transaction_request_body_data_collection(
775-
sentry_init, capture_events, app, get_client
776-
):
777-
sentry_init(
778-
integrations=[BottleIntegration()],
779-
traces_sample_rate=1.0,
780-
_experiments={"data_collection": {"http_bodies": []}},
781-
)
782-
783-
data = {"username": "sentry-user", "age": "26"}
784-
785-
@app.route("/", method="POST")
786-
def index():
787-
capture_message("hi")
788-
return "ok"
789-
790-
events = capture_events()
791-
792-
client = get_client()
793-
response = client.post("/", content_type="application/json", data=json.dumps(data))
794-
assert response[1] == "200 OK"
795-
796-
event, transaction_event = events
797-
assert "data" not in event["request"]
798-
assert "data" not in transaction_event["request"]
799-
800-
801774
def test_oversized_request_body_not_annotated_data_collection(
802775
sentry_init, capture_events, app, get_client
803776
):

0 commit comments

Comments
 (0)