[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot] 2025-12-18 12:20:24 +00:00 committed by GitHub
parent 04a5a04140
commit bfb95365f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,8 +2,6 @@
import warnings import warnings
import pytest
import flask import flask
@ -70,11 +68,11 @@ def test_should_ignore_error_override_is_called():
# Should have been called with the error # Should have been called with the error
assert len(called) == 1 assert len(called) == 1
assert isinstance(called[0], ValueError) assert isinstance(called[0], ValueError)
# Should have deprecation warning # Should have deprecation warning
dep_warnings = [x for x in w if issubclass(x.category, DeprecationWarning)] dep_warnings = [x for x in w if issubclass(x.category, DeprecationWarning)]
assert len(dep_warnings) > 0 assert len(dep_warnings) > 0
assert any("should_ignore_error" in str(x.message) for x in dep_warnings) assert any("should_ignore_error" in str(x.message) for x in dep_warnings)
# Should return internal server error # Should return internal server error
assert response.status_code == 500 assert response.status_code == 500