Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix TestTagResourceModel unittest after the metadata patchset

Dmitry Kazakovbd855e7efde1
diff --git a/libs/resources/tests/TestTagResourceModel.cpp b/libs/resources/tests/TestTagResourceModel.cpp
index 6b0ef9880c..58c7e1aa6f 100644
--- a/libs/resources/tests/TestTagResourceModel.cpp
+++ b/libs/resources/tests/TestTagResourceModel.cpp
@@ -149,7 +149,7 @@ void TestTagResourceModel::testData()
// MetaData -- only in role; there is no column like that, the result in QVariant()
QMap<QString, QVariant> metadata = tagResourceModel.data(idx, Qt::UserRole + KisAbstractResourceModel::MetaData).value<QMap<QString, QVariant>>();
- QCOMPARE(metadata.count(), 0);
+ QCOMPARE(metadata.count(), 1);
QVERIFY(testDataInColumnAndRole(tagResourceModel, KisAbstractResourceModel::ResourceActive, true));
QVERIFY(testDataInColumnAndRole(tagResourceModel, KisAbstractResourceModel::StorageActive, true));