Skip to content
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

Address deprecationWarning from passlib #9

Open
yarikoptic opened this issue Oct 18, 2023 · 0 comments
Open

Address deprecationWarning from passlib #9

yarikoptic opened this issue Oct 18, 2023 · 0 comments

Comments

@yarikoptic
Copy link
Member

for now we will ignore it in the configuration for pytest

repromon_app/tests/conftest.py:58: in init_db
    setup_db.main()
repromon_tools/setup_db.py:265: in main
    fill_tables_with_init_data()
repromon_tools/setup_db.py:230: in fill_tables_with_init_data
    sec_svc.renew_user_apikey("noisseur")
repromon_app/service.py:334: in renew_user_apikey
    apikey: ApiKey = SecurityManager.instance().create_apikey()
repromon_app/security.py:159: in create_apikey
    apikey: str = self.calculate_apikey(apikey_data)
repromon_app/security.py:138: in calculate_apikey
    body: str = self.__crypt_apikey_context.hash(
venvs/dev3.11/lib/python3.11/site-packages/passlib/context.py:2258: in hash
    return record.hash(secret, **kwds)
venvs/dev3.11/lib/python3.11/site-packages/passlib/utils/handlers.py:774: in hash
    warn_hash_settings_deprecation(cls, settings)
venvs/dev3.11/lib/python3.11/site-packages/passlib/utils/handlers.py:101: in warn_hash_settings_deprecation
    warn("passing settings to %(handler)s.hash() is deprecated, and won't be supported in Passlib 2.0; "
E   DeprecationWarning: passing settings to sha256_crypt.hash() is deprecated, and won't be supported in Passlib 2.0; use 'sha256_crypt.using(**settings).hash(secret)' instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant