Comments (1)
After add test suite files on which pytest is failing to --ignore list looks like other units are failing with errors
Here is pytest output:
+ /usr/bin/pytest -ra -m 'not network' --ignore tests/django/test_oauth1/test_authorize.py --ignore tests/django/test_oauth1/test_resource_protector.py --ignore tests/django/test_oauth1/test_token_credentials.py --ignore tests/django/test_oauth2/test_authorization_code_grant.py --ignore tests/django/test_oauth2/test_client_credentials_grant.py --ignore tests/django/test_oauth2/test_implicit_grant.py --ignore tests/django/test_oauth2/test_password_grant.py --ignore tests/django/test_oauth2/test_refresh_token.py --ignore tests/django/test_oauth2/test_resource_protector.py --ignore tests/django/test_oauth2/test_revocation_endpoint.py
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/authlib-1.3.0
configfile: tox.ini
plugins: anyio-4.2.0, asyncio-0.23.3
asyncio: mode=auto
collected 617 items
tests/clients/test_django/test_oauth_client.py EEEEEEEEEEEEE [ 2%]
tests/clients/test_flask/test_oauth_client.py .................... [ 5%]
tests/clients/test_flask/test_user_mixin.py ..... [ 6%]
tests/clients/test_httpx/test_assertion_client.py .. [ 6%]
tests/clients/test_httpx/test_async_assertion_client.py .. [ 6%]
tests/clients/test_httpx/test_async_oauth1_client.py ....... [ 7%]
tests/clients/test_httpx/test_async_oauth2_client.py ......................... [ 11%]
tests/clients/test_httpx/test_oauth1_client.py ....... [ 13%]
tests/clients/test_httpx/test_oauth2_client.py ...................... [ 16%]
tests/clients/test_requests/test_assertion_session.py .. [ 17%]
tests/clients/test_requests/test_oauth1_session.py ................ [ 19%]
tests/clients/test_requests/test_oauth2_session.py .............................. [ 24%]
tests/clients/test_starlette/test_oauth_client.py ............ [ 26%]
tests/clients/test_starlette/test_user_mixin.py .... [ 27%]
tests/core/test_oauth2/test_rfc6749_misc.py ...... [ 28%]
tests/core/test_oauth2/test_rfc7523.py ........................ [ 31%]
tests/core/test_oauth2/test_rfc7591.py ...... [ 32%]
tests/core/test_oauth2/test_rfc7662.py ...... [ 33%]
tests/core/test_oauth2/test_rfc8414.py .......................... [ 38%]
tests/core/test_oidc/test_core.py .......... [ 39%]
tests/core/test_oidc/test_discovery.py ....................... [ 43%]
tests/flask/test_oauth1/test_authorize.py ...... [ 44%]
tests/flask/test_oauth1/test_resource_protector.py ........ [ 45%]
tests/flask/test_oauth1/test_temporary_credentials.py ................ [ 48%]
tests/flask/test_oauth1/test_token_credentials.py ...... [ 49%]
tests/flask/test_oauth2/test_authorization_code_grant.py ............ [ 51%]
tests/flask/test_oauth2/test_client_configuration_endpoint.py .................. [ 54%]
tests/flask/test_oauth2/test_client_credentials_grant.py ..... [ 54%]
tests/flask/test_oauth2/test_client_registration_endpoint.py ......... [ 56%]
tests/flask/test_oauth2/test_code_challenge.py ............ [ 58%]
tests/flask/test_oauth2/test_device_code_grant.py ......... [ 59%]
tests/flask/test_oauth2/test_implicit_grant.py ...... [ 60%]
tests/flask/test_oauth2/test_introspection_endpoint.py .... [ 61%]
tests/flask/test_oauth2/test_jwt_access_token.py ..s........................... [ 66%]
tests/flask/test_oauth2/test_jwt_bearer_client_auth.py ....... [ 67%]
tests/flask/test_oauth2/test_jwt_bearer_grant.py ...... [ 68%]
tests/flask/test_oauth2/test_oauth2_server.py ....... [ 69%]
tests/flask/test_oauth2/test_openid_code_grant.py ........ [ 70%]
tests/flask/test_oauth2/test_openid_hybrid_grant.py .......... [ 72%]
tests/flask/test_oauth2/test_openid_implict_grant.py ........ [ 73%]
tests/flask/test_oauth2/test_password_grant.py ........ [ 75%]
tests/flask/test_oauth2/test_refresh_token.py .......... [ 76%]
tests/flask/test_oauth2/test_revocation_endpoint.py .... [ 77%]
tests/jose/test_chacha20.py .FF [ 77%]
tests/jose/test_ecdh_1pu.py ........................... [ 82%]
tests/jose/test_jwe.py ................................................ [ 89%]
tests/jose/test_jwk.py ....................... [ 93%]
tests/jose/test_jws.py ................ [ 96%]
tests/jose/test_jwt.py ...................... [ 99%]
tests/jose/test_rfc8037.py . [100%]
========================================================================================== ERRORS ===========================================================================================
__________________________________________________________________ ERROR at setup of DjangoOAuthTest.test_oauth1_authorize __________________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
___________________________________________________________ ERROR at setup of DjangoOAuthTest.test_oauth2_access_token_with_post ____________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
__________________________________________________________________ ERROR at setup of DjangoOAuthTest.test_oauth2_authorize __________________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
___________________________________________________________ ERROR at setup of DjangoOAuthTest.test_oauth2_authorize_access_denied ___________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
__________________________________________________________ ERROR at setup of DjangoOAuthTest.test_oauth2_authorize_code_challenge ___________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
___________________________________________________________ ERROR at setup of DjangoOAuthTest.test_oauth2_authorize_code_verifier ___________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
__________________________________________________________________ ERROR at setup of DjangoOAuthTest.test_openid_authorize __________________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
_______________________________________________________________ ERROR at setup of DjangoOAuthTest.test_register_from_settings _______________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
________________________________________________________________ ERROR at setup of DjangoOAuthTest.test_register_remote_app _________________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
______________________________________________________________ ERROR at setup of DjangoOAuthTest.test_register_with_overwrite _______________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
_______________________________________________________________ ERROR at setup of DjangoOAuthTest.test_request_without_token ________________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
_____________________________________________________________ ERROR at setup of DjangoOAuthTest.test_with_fetch_token_in_oauth ______________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
____________________________________________________________ ERROR at setup of DjangoOAuthTest.test_with_fetch_token_in_register ____________________________________________________________
cls = <class 'tests.clients.test_django.test_oauth_client.DjangoOAuthTest'>
@classmethod
def setUpClass(cls):
> super().setUpClass()
/usr/lib/python3.8/site-packages/django/test/testcases.py:1448:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.8/site-packages/django/test/testcases.py:325: in setUpClass
cls._add_databases_failures()
/usr/lib/python3.8/site-packages/django/test/testcases.py:351: in _add_databases_failures
cls.databases = cls._validate_databases()
/usr/lib/python3.8/site-packages/django/test/testcases.py:333: in _validate_databases
if alias not in connections:
/usr/lib/python3.8/site-packages/django/utils/connection.py:73: in __iter__
return iter(self.settings)
/usr/lib/python3.8/site-packages/django/utils/functional.py:57: in __get__
res = instance.__dict__[self.name] = self.func(instance)
/usr/lib/python3.8/site-packages/django/utils/connection.py:45: in settings
self._settings = self.configure_settings(self._settings)
/usr/lib/python3.8/site-packages/django/db/utils.py:148: in configure_settings
databases = super().configure_settings(databases)
/usr/lib/python3.8/site-packages/django/utils/connection.py:50: in configure_settings
settings = getattr(django_settings, self.settings_name)
/usr/lib/python3.8/site-packages/django/conf/__init__.py:102: in __getattr__
self._setup(name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <LazySettings [Unevaluated]>, name = 'DATABASES'
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
> raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
% (desc, ENVIRONMENT_VARIABLE)
)
E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
/usr/lib/python3.8/site-packages/django/conf/__init__.py:82: ImproperlyConfigured
========================================================================================= FAILURES ==========================================================================================
______________________________________________________________________________ ChaCha20Test.test_dir_alg_xc20p ______________________________________________________________________________
self = <tests.jose.test_chacha20.ChaCha20Test testMethod=test_dir_alg_xc20p>
def test_dir_alg_xc20p(self):
jwe = JsonWebEncryption()
key = OctKey.generate_key(256, is_private=True)
protected = {'alg': 'dir', 'enc': 'XC20P'}
> data = jwe.serialize_compact(protected, b'hello', key)
tests/jose/test_chacha20.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
authlib/jose/rfc7516/jwe.py:80: in serialize_compact
enc = self.get_header_enc(protected)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <authlib.jose.rfc7516.jwe.JsonWebEncryption object at 0x7f37275b8ee0>, header = {'alg': 'dir', 'enc': 'XC20P'}
def get_header_enc(self, header):
if 'enc' not in header:
raise MissingEncryptionAlgorithmError()
enc = header['enc']
if self._algorithms is not None and enc not in self._algorithms:
raise UnsupportedEncryptionAlgorithmError()
if enc not in self.ENC_REGISTRY:
> raise UnsupportedEncryptionAlgorithmError()
E authlib.jose.errors.UnsupportedEncryptionAlgorithmError: unsupported_encryption_algorithm: Unsupported "enc" value in header
authlib/jose/rfc7516/jwe.py:678: UnsupportedEncryptionAlgorithmError
___________________________________________________________________ ChaCha20Test.test_xc20p_content_encryption_decryption ___________________________________________________________________
self = <tests.jose.test_chacha20.ChaCha20Test testMethod=test_xc20p_content_encryption_decryption>
def test_xc20p_content_encryption_decryption(self):
# https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha-03#appendix-A.3.1
> enc = JsonWebEncryption.ENC_REGISTRY['XC20P']
E KeyError: 'XC20P'
tests/jose/test_chacha20.py:47: KeyError
===================================================================================== warnings summary ======================================================================================
tests/clients/test_flask/test_oauth_client.py::FlaskOAuthTest::test_openid_authorize
/home/tkloczko/rpmbuild/BUILD/authlib-1.3.0/authlib/jose/jwk.py:14: AuthlibDeprecationWarning: Please use ``JsonWebKey`` directly.
deprecate('Please use ``JsonWebKey`` directly.')
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
SKIPPED [1] tests/flask/test_oauth2/test_jwt_access_token.py:307: unconditional skip
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_oauth1_authorize - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_oauth2_access_token_with_post - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_oauth2_authorize - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_oauth2_authorize_access_denied - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_oauth2_authorize_code_challenge - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_oauth2_authorize_code_verifier - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_openid_authorize - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_register_from_settings - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_register_remote_app - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_register_with_overwrite - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_request_without_token - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_with_fetch_token_in_oauth - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
ERROR tests/clients/test_django/test_oauth_client.py::DjangoOAuthTest::test_with_fetch_token_in_register - django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or cal...
FAILED tests/jose/test_chacha20.py::ChaCha20Test::test_dir_alg_xc20p - authlib.jose.errors.UnsupportedEncryptionAlgorithmError: unsupported_encryption_algorithm: Unsupported "enc" value in header
FAILED tests/jose/test_chacha20.py::ChaCha20Test::test_xc20p_content_encryption_decryption - KeyError: 'XC20P'
============================================================== 2 failed, 601 passed, 1 skipped, 1 warning, 13 errors in 14.12s ==============================================================
from authlib.
Related Issues (20)
- InvalidClaimError "iss" because "options" inconsistent with "option_values" when using Azure's OAuth (templated endpoint) HOT 1
- Add several different public keys for one Tokenvalidator, or allow several Validators for one auth_type in ResourceProtector
- JWTBearerTokenGenerator.generate - can not able to generate token with expires_in=0
- JWTBearerTokenValidator don't send parameters now and leeway to claim.validate
- ask to transform inline function "load_key" to method of OpenIDMixin
- Documentation for FastAPI/Starlette for Oauth2 is incorrect/misleading/confusing? HOT 3
- Drop `starlette.config.Config` from the Starlette integration
- Support for OIDC4VC standards
- 1.3.0: sphinx warnings `reference target not found` HOT 3
- import importlib.metadata missing from authlib.integrations.flask_oauth2.errors.py? HOT 2
- Missing Dependencies (httpx & itsdangerous) HOT 3
- Support async functions in compliance hooks.
- httpx OAuth2 client has incorrect oauth_error_class
- Documentation: Missing OIDC client documentation on custom claims HOT 1
- Session cookie grows indefinitely, results in CSRF Warning. HOT 3
- Have a WSGI integration example
- rfc7519 JsonWebEncryption is initialized with an incorrect list of algorhythms.
- Incorrect check for insecure transport on OAuth1.0
- Have special character encoding be optional
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authlib.