From c6a40d741c41cdc0af38eef89247c2120dcb6270 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 27 Oct 2026 23:49:24 +0100 Subject: fix(core): resolve static type checking issues --- tests/test_views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_views.py') diff --git a/tests/test_views.py b/tests/test_views.py index 51b94b9..2048594 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -11,6 +11,7 @@ import pytest import sqlalchemy as sa from flask import Flask from flask.testing import FlaskClient +from sqlalchemy.exc import IntegrityError from webmentions_ssg import DATABASE as db from webmentions_ssg.models import ( @@ -741,7 +742,7 @@ def test_endpoint_recovers_from_concurrent_insert( rollback = Mock() commit = Mock( side_effect=[ - sa.exc.IntegrityError( + IntegrityError( "INSERT INTO received_webmention ...", {}, Exception("duplicate source/target"), -- cgit v1.3.1