We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ee026 commit cc58403Copy full SHA for cc58403
tests/integrations/starlette/test_starlette.py
@@ -239,7 +239,7 @@ async def do_stuff(message):
239
240
241
class SampleMiddlewareWithArgs(Middleware):
242
- def __init__(self, app, bla):
+ def __init__(self, app, bla=None):
243
self.app = app
244
self.bla = bla
245
@@ -874,7 +874,7 @@ def test_middleware_args(sentry_init):
874
integrations=[StarletteIntegration()],
875
)
876
_ = starlette_app_factory(
877
- middleware=[Middleware(SampleMiddlewareWithArgs, "bla", "ba")]
+ middleware=[Middleware(SampleMiddlewareWithArgs, "bla")]
878
879
880
# Only creating the App with an Middleware with args
0 commit comments