Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assertion in TestCheckParseValues::test_warns_bad_type
Fix the assertion in TestCheckParseValues::test_warns_bad_type to use `.assert_called_with()` rather than non-existing `.called_with()` method. The latter is wrongly interpreted as calling a mocked method in Python < 3.12, and therefore does not test anything at all. Starting with Python 3.12, it results in an error: AttributeError: 'called_with' is not a valid assertion. Use a spec for the mock if 'called_with' is meant to be an attribute. Fixing the call also revealed that the assertion was incorrect, so I've updated it to match the current call.
- Loading branch information