Skip to content

Commit

Permalink
tests used QVERIFY() instead of Q_ASSERT()
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 4, 2023
1 parent dc7c41e commit 8673113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<quint64>(), 1);

auto attribute = type->getAttribute("timestamp");
Expand Down Expand Up @@ -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<quint64>(), 1);

auto attribute = type->getAttribute("datetime");
Expand Down Expand Up @@ -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<quint64>(), 1);

auto attribute = type->getAttribute("date");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8673113

Please sign in to comment.