Commit ea44e6b9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix path

parent 308675bc
...@@ -55,14 +55,12 @@ void ImportNotesJobInterfaceTest::importNoteConfig_data() ...@@ -55,14 +55,12 @@ void ImportNotesJobInterfaceTest::importNoteConfig_data()
{ {
QTest::addColumn<QString>("zipFilePath"); QTest::addColumn<QString>("zipFilePath");
const QByteArray pathConfig(QByteArray(PIMDATAEXPORTER_DIR) + "/import/"); const QByteArray pathConfig(QByteArray(PIMDATAEXPORTER_DIR) + "/import/");
QTest::newRow("test1") << QLatin1String(pathConfig) + QStringLiteral("test1/test1.zip"); QTest::newRow("test1") << QLatin1String(pathConfig) + QStringLiteral("test1/");
} }
void ImportNotesJobInterfaceTest::importNoteConfig() void ImportNotesJobInterfaceTest::importNoteConfig()
{ {
QFETCH(QString, zipFilePath); QFETCH(QString, zipFilePath);
const QString path = QLatin1String(PIMDATAEXPORTER_DIR) + QStringLiteral("/import/test1/");
TestImportFile *file = new TestImportFile(zipFilePath, this); TestImportFile *file = new TestImportFile(zipFilePath, this);
file->setPathConfig(path); file->setPathConfig(path);
ImportNotesJobInterfaceTestImpl *impl = new ImportNotesJobInterfaceTestImpl(this, {Utils::StoredType::Config}, file->archiveStorage(), 1); ImportNotesJobInterfaceTestImpl *impl = new ImportNotesJobInterfaceTestImpl(this, {Utils::StoredType::Config}, file->archiveStorage(), 1);
......
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