Describe the bug
When running tests against newer versions of Starlette(1.0), the following error occurs:
AttributeError: 'Starlette' object has no attribute 'route'
To Reproduce
Example pattern used in tests:
@app.route("/t1")
@limiter.limit("2/second")
def handler(request):
return PlainTextResponse("ok")
Expected behavior
Compatibility with newer Starlette versions, or documented version constraints.
Your app (please complete the following information):
slowapi: 0.1.9
starlette: 1.0
python: 3.13
Additional context
This was encountered while packaging for Debian, where newer Starlette versions are used.
Describe the bug
When running tests against newer versions of Starlette(1.0), the following error occurs:
To Reproduce
Example pattern used in tests:
Expected behavior
Compatibility with newer Starlette versions, or documented version constraints.
Your app (please complete the following information):
slowapi: 0.1.9
starlette: 1.0
python: 3.13
Additional context
This was encountered while packaging for Debian, where newer Starlette versions are used.