movement
movement copied to clipboard
Check log messages in tests #214
In the enhance/improve-error-testing branch, I have tried to improve the validation of error messages in tests by adding a check_error_message helper function, updating existing tests to use the match parameter with pytest.raises, and creating a demonstration file showing recommended testing approaches. This ensures consistent error verification across the codebase and prevents tests from passing with incorrect error messages.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code