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

Set correct assertLogs levels to fix Py 3.10+ test_decorators #197

Merged

Conversation

sadielbartholomew
Copy link
Member

Addresses item two on the list in #187. It turns out that the issue at hand was in the test_decorators test test_manage_log_level_via_verbosity method code to check logging outputs, which was set up incorrectly for three cases with regards to the minimum logging level (level kwarg) being checked in the assertions which all relied on the assertLogs method.

I'm not sure why said issue didn't appear with Python <3.10 versions, as nothing in the changelog for 3.10 suggests any behaviour change in that method or related aspects, but hey ho.

Probably doesn't require a review, as quite trivial, but feel free to look over it @davidhassell, else just merge straight in! I will add Python 3.10 to our Actions workflows shortly so we can test against 3.10.

@sadielbartholomew sadielbartholomew added the testing Issues related to units tests and their coverage label Jul 15, 2022
@sadielbartholomew sadielbartholomew self-assigned this Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issues related to units tests and their coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants