From 8673113cd7133c50ed379a392775f27dafd8d3d0 Mon Sep 17 00:00:00 2001 From: silverqx Date: Tue, 4 Apr 2023 15:58:19 +0200 Subject: [PATCH] tests used QVERIFY() instead of Q_ASSERT() --- .../orm/tiny/castattributes/tst_castattributes.cpp | 6 +++--- .../functional/orm/tiny/softdeletes/tst_softdeletes.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/auto/functional/orm/tiny/castattributes/tst_castattributes.cpp b/tests/auto/functional/orm/tiny/castattributes/tst_castattributes.cpp index 100bf5227..d67963e3f 100644 --- a/tests/auto/functional/orm/tiny/castattributes/tst_castattributes.cpp +++ b/tests/auto/functional/orm/tiny/castattributes/tst_castattributes.cpp @@ -1043,7 +1043,7 @@ void tst_CastAttributes::defaultCast_timestamp_QSQLITE_OffReturnQDateTime() cons // Skip model cache (I will not create special cache logic for this) auto type = Type::on(connection)->find(1); - Q_ASSERT(type); + QVERIFY(type); QCOMPARE(type->getAttribute(ID).value(), 1); auto attribute = type->getAttribute("timestamp"); @@ -1072,7 +1072,7 @@ void tst_CastAttributes::defaultCast_datetime_QSQLITE_OffReturnQDateTime() const // Skip model cache (I will not create special cache logic for this) auto type = Type::on(connection)->find(1); - Q_ASSERT(type); + QVERIFY(type); QCOMPARE(type->getAttribute(ID).value(), 1); auto attribute = type->getAttribute("datetime"); @@ -1101,7 +1101,7 @@ void tst_CastAttributes::defaultCast_date_QSQLITE_OffReturnQDateTime() const // Skip model cache (I will not create special cache logic for this) auto type = Type::on(connection)->find(1); - Q_ASSERT(type); + QVERIFY(type); QCOMPARE(type->getAttribute(ID).value(), 1); auto attribute = type->getAttribute("date"); diff --git a/tests/auto/functional/orm/tiny/softdeletes/tst_softdeletes.cpp b/tests/auto/functional/orm/tiny/softdeletes/tst_softdeletes.cpp index fb3eafa58..e642387a4 100644 --- a/tests/auto/functional/orm/tiny/softdeletes/tst_softdeletes.cpp +++ b/tests/auto/functional/orm/tiny/softdeletes/tst_softdeletes.cpp @@ -102,12 +102,12 @@ void tst_SoftDeletes::initTestCase() void tst_SoftDeletes::model_User_Extends_SoftDeletes() { - Q_ASSERT(User::extendsSoftDeletes()); + QVERIFY(User::extendsSoftDeletes()); } void tst_SoftDeletes::model_Setting_NotExtends_SoftDeletes() { - Q_ASSERT(!Setting::extendsSoftDeletes()); + QVERIFY(!Setting::extendsSoftDeletes()); } void tst_SoftDeletes::trashed() const