Commit 4f51ff3
authored
fix(quart): Support
See
#2709 (comment)
If `quart_flask_patch` is imported, it monkeypatches stuff so that the
Quart app appears to be a Flask app. This confuses our Flask
integration, which tries to enable itself and fails.
This commit:
- Makes the Flask integration detect that what it sees as Flask might
actually be Quart.
- Reorganizes the Quart test suite a little to allow to test this case
(a bit tricky since `import quart_flask_patch` needs to happen before
anything else due to its monkeypatching nature).
Closes #2709quart_flask_patch (#4132)1 parent 4ffefe4 commit 4f51ff3
File tree
5 files changed
+71
-12
lines changed- scripts/populate_tox
- sentry_sdk/integrations
- tests/integrations/quart
5 files changed
+71
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | 17 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | | - | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
74 | 111 | | |
75 | 112 | | |
76 | 113 | | |
| |||
213 | 250 | | |
214 | 251 | | |
215 | 252 | | |
| 253 | + | |
| 254 | + | |
216 | 255 | | |
217 | 256 | | |
218 | 257 | | |
| |||
368 | 407 | | |
369 | 408 | | |
370 | 409 | | |
| 410 | + | |
| 411 | + | |
371 | 412 | | |
372 | 413 | | |
373 | 414 | | |
| |||
385 | 426 | | |
386 | 427 | | |
387 | 428 | | |
| 429 | + | |
| 430 | + | |
388 | 431 | | |
389 | 432 | | |
390 | 433 | | |
| |||
514 | 557 | | |
515 | 558 | | |
516 | 559 | | |
| 560 | + | |
| 561 | + | |
517 | 562 | | |
518 | 563 | | |
519 | 564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
| |||
0 commit comments