diff options
| author | Dennis Fink | 2026-10-27 23:49:24 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-27 23:49:24 +0100 |
| commit | c6a40d741c41cdc0af38eef89247c2120dcb6270 (patch) | |
| tree | 414df73642a42f4e24b3a0b4bb2bf914d678583d /tests/cli/test_users.py | |
| parent | 17ab56a3c7d3dbb3d66edf380ab637a61cefe50c (diff) | |
| download | webmentions-ssg-c6a40d741c41cdc0af38eef89247c2120dcb6270.tar.gz webmentions-ssg-c6a40d741c41cdc0af38eef89247c2120dcb6270.zip | |
fix(core): resolve static type checking issues
Diffstat (limited to '')
| -rw-r--r-- | tests/cli/test_users.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cli/test_users.py b/tests/cli/test_users.py index 24bab0a..6538b27 100644 --- a/tests/cli/test_users.py +++ b/tests/cli/test_users.py @@ -7,6 +7,7 @@ from unittest.mock import patch import pytest import sqlalchemy as sa from flask import Flask +from sqlalchemy.exc import IntegrityError from webmentions_ssg import DATABASE from webmentions_ssg.models import User @@ -221,7 +222,7 @@ def test_users_cli_can_manage_legacy_whitespace_username(app: Flask) -> None: def test_users_cli_create_rolls_back_on_duplicate_race(app: Flask) -> None: - database_error = sa.exc.IntegrityError("INSERT", {}, Exception("duplicate")) + database_error = IntegrityError("INSERT", {}, Exception("duplicate")) with app.app_context(): with ( |
