We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
assertDictContainsSubset
assertEquals
Summary:
Tests in OpenWISP Controller fail on Python 3.12 due to:
assertEqual
Steps to Reproduce:
test_context_regression
test_ip_fields_not_duplicated
Expected Behavior: Tests should run successfully on Python 3.12, with updated assertions.
Error Messages:
unittest
Suggested Fix:
assertDictEqual
The text was updated successfully, but these errors were encountered:
[tests] Fix test failures with Python 3.12 openwisp#953
87598e3
Replaced assertEquals with assertEqual and assertDictContainsSubset with for loop to check all key-value pairs. Fixes openwisp#953
Successfully merging a pull request may close this issue.
Summary:
Tests in OpenWISP Controller fail on Python 3.12 due to:
assertDictContainsSubset
.assertEquals
(now replaced byassertEqual
).Steps to Reproduce:
assertDictContainsSubset
intest_context_regression
.assertEquals
intest_ip_fields_not_duplicated
.Expected Behavior:
Tests should run successfully on Python 3.12, with updated assertions.
Error Messages:
assertDictContainsSubset
: AttributeError: moduleunittest
has no attributeassertDictContainsSubset
assertEquals
: DeprecationWarning: TheassertEquals
method is deprecated, useassertEqual
instead.Suggested Fix:
assertDictContainsSubset
withassertDictEqual
.assertEquals
withassertEqual
.The text was updated successfully, but these errors were encountered: