aboutsummaryrefslogtreecommitdiff
path: root/tests/test_views.py
diff options
context:
space:
mode:
authorDennis Fink2026-10-27 23:49:24 +0100
committerDennis Fink2026-10-27 23:49:24 +0100
commitc6a40d741c41cdc0af38eef89247c2120dcb6270 (patch)
tree414df73642a42f4e24b3a0b4bb2bf914d678583d /tests/test_views.py
parent17ab56a3c7d3dbb3d66edf380ab637a61cefe50c (diff)
downloadwebmentions-ssg-c6a40d741c41cdc0af38eef89247c2120dcb6270.tar.gz
webmentions-ssg-c6a40d741c41cdc0af38eef89247c2120dcb6270.zip
fix(core): resolve static type checking issues
Diffstat (limited to 'tests/test_views.py')
-rw-r--r--tests/test_views.py3
1 files changed, 2 insertions, 1 deletions
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"),