Skip to content

Commit cc58403

Browse files
committed
Make it work with ancient Starlette
1 parent 55ee026 commit cc58403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integrations/starlette/test_starlette.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ async def do_stuff(message):
239239

240240

241241
class SampleMiddlewareWithArgs(Middleware):
242-
def __init__(self, app, bla):
242+
def __init__(self, app, bla=None):
243243
self.app = app
244244
self.bla = bla
245245

@@ -874,7 +874,7 @@ def test_middleware_args(sentry_init):
874874
integrations=[StarletteIntegration()],
875875
)
876876
_ = starlette_app_factory(
877-
middleware=[Middleware(SampleMiddlewareWithArgs, "bla", "ba")]
877+
middleware=[Middleware(SampleMiddlewareWithArgs, "bla")]
878878
)
879879

880880
# Only creating the App with an Middleware with args

0 commit comments

Comments
 (0)