Skip to content

fix: add assertEquals compatibility for Python 3.12+#160

Merged
cletomartin merged 1 commit intomainfrom
assertEquals-compatibility
Jul 30, 2024
Merged

fix: add assertEquals compatibility for Python 3.12+#160
cletomartin merged 1 commit intomainfrom
assertEquals-compatibility

Conversation

@cletomartin
Copy link
Collaborator

What

Add assertEquals compatibility for Python 3.12+.

Why

Looks like assertEquals() has been retired from unittest.TestCase. We use assertEqual() now but we will allow users to use assertEquals() for existing checks.

How

Add a method to ComplianceCheck that points to asserEqual().

Test

Added unit tests and manually tested.

drsm79
drsm79 previously approved these changes Jul 30, 2024
Looks like assertEquals() has been retired from unittest.TestCase.
We use `assertEqual()` now but we will allow users to use `assertEquals()` for existing checks.
@cletomartin cletomartin merged commit 82e7d0b into main Jul 30, 2024
@cletomartin cletomartin deleted the assertEquals-compatibility branch July 30, 2024 10:54
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

Successfully merging this pull request may close these issues.

2 participants