diff --git a/docs/usage/security/abstract-authentication-middleware.rst b/docs/usage/security/abstract-authentication-middleware.rst index 9db3ac6c77..615c698346 100644 --- a/docs/usage/security/abstract-authentication-middleware.rst +++ b/docs/usage/security/abstract-authentication-middleware.rst @@ -65,7 +65,7 @@ example here let us say it is a `SQLAlchemy `_ mod # ... other fields follow, but we only require id for this example We will also need some utility methods to encode and decode tokens. To this end we will use -the `python-jose `_ library. We will also create a Pydantic model representing a +the `pyjwt `_ library. We will also create a Pydantic model representing a JWT Token: .. dropdown:: Click to see the JWT utility methods and Token model diff --git a/docs/usage/security/jwt.rst b/docs/usage/security/jwt.rst index fcf1abd916..a25f45be06 100644 --- a/docs/usage/security/jwt.rst +++ b/docs/usage/security/jwt.rst @@ -2,7 +2,7 @@ JWT Security Backends ===================== Litestar offers optional JWT based security backends. To use these make sure to install the -`python-jose `_ and `cryptography `_ +`pyjwt `_ and `cryptography `_ packages, or simply install Litestar with the ``jwt`` `extra `_: diff --git a/pyproject.toml b/pyproject.toml index aa4e9948ec..1f5b7ea2c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -170,7 +170,6 @@ linting = [ "pyright==1.1.344", "asyncpg-stubs", "types-beautifulsoup4", - "types-python-jose", "types-pyyaml", "types-redis", "types-psutil", diff --git a/tests/unit/test_contrib/test_opentelemetry.py b/tests/unit/test_contrib/test_opentelemetry.py index f34907ef7d..d358a6394e 100644 --- a/tests/unit/test_contrib/test_opentelemetry.py +++ b/tests/unit/test_contrib/test_opentelemetry.py @@ -97,6 +97,7 @@ def handler() -> dict: } metric_data = reader.get_metrics_data() + assert metric_data assert metric_data.resource_metrics resource_metrics = metric_data.resource_metrics[0]