summaryrefslogtreecommitdiff
path: root/tests/unit/misc/test_sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/misc/test_sql.py')
-rw-r--r--tests/unit/misc/test_sql.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/misc/test_sql.py b/tests/unit/misc/test_sql.py
index 3ea32dab9..bbdf5e8e5 100644
--- a/tests/unit/misc/test_sql.py
+++ b/tests/unit/misc/test_sql.py
@@ -95,13 +95,16 @@ class TestSqlError:
(sql.SqliteErrorCode.CONSTRAINT, sql.BugError),
])
def test_known(self, error_code, exception):
- sql_err = QtSql.QSqlError("driver text", "db text", QtSql.QSqlError.UnknownError,
- error_code)
+ sql_err = QtSql.QSqlError(
+ "driver text", "db text", QtSql.QSqlError.UnknownError, error_code
+ )
with pytest.raises(exception):
sql.raise_sqlite_error("Message", sql_err)
def test_logging(self, caplog):
- sql_err = QtSql.QSqlError("driver text", "db text", QtSql.QSqlError.UnknownError, '23')
+ sql_err = QtSql.QSqlError(
+ "driver text", "db text", QtSql.QSqlError.UnknownError, '23'
+ )
with pytest.raises(sql.BugError):
sql.raise_sqlite_error("Message", sql_err)