Skip to content

DeprecationWarning: assertDictContainsSubset is deprecated #35175

Closed
@irtazaakram

Description

@irtazaakram

The assertDictContainsSubset method was deprecated in version 3.2 and removed in version 3.11.

Reference: python/cpython#28268

Example usage in edx-platform:

self.assertDictContainsSubset({'team': ['Course team user does not exist']}, response.data)

Example replacement:
python/cpython#28268 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions