|
7 | 7 | from sentry_sdk import capture_message
|
8 | 8 | from sentry_sdk.consts import DEFAULT_MAX_VALUE_LENGTH
|
9 | 9 | from sentry_sdk.integrations.bottle import BottleIntegration
|
10 |
| -from sentry_sdk.serializer import MAX_DATABAG_BREADTH |
11 | 10 |
|
12 | 11 | from sentry_sdk.integrations.logging import LoggingIntegration
|
13 | 12 | from werkzeug.test import Client
|
@@ -122,7 +121,7 @@ def index():
|
122 | 121 |
|
123 | 122 |
|
124 | 123 | def test_large_json_request(sentry_init, capture_events, app, get_client):
|
125 |
| - sentry_init(integrations=[BottleIntegration()], max_request_body_size="always") |
| 124 | + sentry_init(integrations=[BottleIntegration()]) |
126 | 125 |
|
127 | 126 | data = {"foo": {"bar": "a" * (DEFAULT_MAX_VALUE_LENGTH + 10)}}
|
128 | 127 |
|
@@ -180,7 +179,7 @@ def index():
|
180 | 179 |
|
181 | 180 |
|
182 | 181 | def test_medium_formdata_request(sentry_init, capture_events, app, get_client):
|
183 |
| - sentry_init(integrations=[BottleIntegration()], max_request_body_size="always") |
| 182 | + sentry_init(integrations=[BottleIntegration()]) |
184 | 183 |
|
185 | 184 | data = {"foo": "a" * (DEFAULT_MAX_VALUE_LENGTH + 10)}
|
186 | 185 |
|
@@ -242,7 +241,7 @@ def index():
|
242 | 241 |
|
243 | 242 |
|
244 | 243 | def test_files_and_form(sentry_init, capture_events, app, get_client):
|
245 |
| - sentry_init(integrations=[BottleIntegration()], max_request_body_size="always") |
| 244 | + sentry_init(integrations=[BottleIntegration()]) |
246 | 245 |
|
247 | 246 | data = {
|
248 | 247 | "foo": "a" * (DEFAULT_MAX_VALUE_LENGTH + 10),
|
@@ -287,11 +286,9 @@ def index():
|
287 | 286 | def test_json_not_truncated_if_max_request_body_size_is_always(
|
288 | 287 | sentry_init, capture_events, app, get_client
|
289 | 288 | ):
|
290 |
| - sentry_init(integrations=[BottleIntegration()], max_request_body_size="always") |
| 289 | + sentry_init(integrations=[BottleIntegration()]) |
291 | 290 |
|
292 |
| - data = { |
293 |
| - "key{}".format(i): "value{}".format(i) for i in range(MAX_DATABAG_BREADTH + 10) |
294 |
| - } |
| 291 | + data = {"key{}".format(i): "value{}".format(i) for i in range(10**5)} |
295 | 292 |
|
296 | 293 | @app.route("/", method="POST")
|
297 | 294 | def index():
|
|
0 commit comments