diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/test_views.py | 3 |
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"), |
