-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.3.0: pytest dails in few units #616
Labels
Comments
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 ============================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Q: what should I pass in env variables? 🤔
List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.
The text was updated successfully, but these errors were encountered: