Skip to content

DeprecationWarning in test_authorization_code.py::TestOIDCAuthorizationCodeHSAlgorithm::test_id_token #1483

Open
@n2ygk

Description

@n2ygk

Describe the bug

DeprecationWarning is raised.

================================================================ warnings summary =================================================================
tests/test_authorization_code.py::TestOIDCAuthorizationCodeHSAlgorithm::test_id_token
  /Users/ac45/src/django-oauth-toolkit/tests/test_authorization_code.py:1870: DeprecationWarning: 
    assert key.key_type == "oct"

tests/test_models.py::test_application_key
  /Users/ac45/src/django-oauth-toolkit/tests/test_models.py:549: DeprecationWarning: 
    assert key.key_type == "RSA"

tests/test_models.py::test_application_key
  /Users/ac45/src/django-oauth-toolkit/tests/test_models.py:560: DeprecationWarning: 
    assert key.key_type == "oct"

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

To Reproduce

tox -e py38-dj42

Expected behavior

Should not have DeprecationWarnings

Version

  • I have tested with the latest published release and it's still a problem.
  • I have tested with the master branch and it's still a problem.

Additional context

Will need to identify the specific Deprecation and refactor as needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions