[office/tellico] src/tests: Add additional file check to test
Robby Stephenson <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 790a2edc7d7840d88ef3712e3c37203f18686122 by Robby Stephenson.
Committed on 01/08/2026 at 00:48.
Pushed by rstephenson into branch 'master'.
Add additional file check to test
M +3 -1 src/tests/htmlexportertest.cpp
https://invent.kde.org/office/tellico/-/commit/790a2edc7d7840d88ef3712e3c37203f18686122
diff --git a/src/tests/htmlexportertest.cpp b/src/tests/htmlexportertest.cpp
index 6748c0466..e239d7e90 100644
--- a/src/tests/htmlexportertest.cpp
+++ b/src/tests/htmlexportertest.cpp
@@ -495,6 +495,7 @@ void HtmlExporterTest::testNoFields() {
exporter.setEntryXSLTFile(QStringLiteral("Fancy"));
QVERIFY(exporter.exec());
+ QVERIFY(QFile::exists(tempDir.path() + "/testHtml_files/entry-1.html"));
}
// https://bugs.kde.org/show_bug.cgi?id=523140
@@ -510,7 +511,7 @@ void HtmlExporterTest::testNoTitle() {
QTemporaryDir tempDir;
QVERIFY(tempDir.isValid());
- tempDir.setAutoRemove(true);
+ tempDir.setAutoRemove(false);
Tellico::Export::HTMLExporter exporter(coll, QUrl());
exporter.setURL(QUrl::fromLocalFile(tempDir.path() + "/testHtml.html"));
@@ -521,4 +522,5 @@ void HtmlExporterTest::testNoTitle() {
exporter.setEntryXSLTFile(QStringLiteral("Fancy"));
QVERIFY(exporter.exec());
+ QVERIFY(QFile::exists(tempDir.path() + "/testHtml_files/test-1.html"));
}