Commit 3d74a43a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

kns: make the test more reliable

Some test cases rely on a clean .qttest, so make sure it is.
parent 0dbca799
......@@ -28,6 +28,8 @@ KNSBackendTest::KNSBackendTest(QObject* parent)
, m_r(nullptr)
{
QStandardPaths::setTestModeEnabled(true);
QDir(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)).removeRecursively();
ResourcesModel* model = new ResourcesModel(QStringLiteral("kns-backend"), this);
Q_ASSERT(!model->backends().isEmpty());
auto findTestBackend = [](AbstractResourcesBackend* backend) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment