mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-19 13:27:39 +02:00
* test: remove warnings for `TemplateResponse`
removes warnings
```
tests/core/views/test_generic.py::test_core_views_generic
tests/core/views/test_generic.py::test_get_wallet_with_user_and_wallet
tests/core/views/test_generic.py::test_get_extensions
tests/core/views/test_public_api.py::test_core_views_generic
/home/dni/.cache/pypoetry/virtualenvs/lnbits-XeqO4Z-j-py3.10/lib/python3.10/site-packages/starlette/templating.py:178: DeprecationWarning: The `name` is not the first para
meter anymore. The first parameter should be the `Request` instance.
Replace `TemplateResponse(name, {"request": request})` by `TemplateResponse(request, name)`.
warnings.warn(
```
|
||
|---|---|---|
| .. | ||
| core | ||
| nodes | ||
| static | ||
| templates | ||
| utils | ||
| wallets | ||
| __init__.py | ||
| __main__.py | ||
| app.py | ||
| bolt11.py | ||
| commands.py | ||
| db.py | ||
| decorators.py | ||
| extension_manager.py | ||
| helpers.py | ||
| jinja2_templating.py | ||
| lnurl.py | ||
| middleware.py | ||
| requestvars.py | ||
| server.py | ||
| settings.py | ||
| tasks.py | ||