Skip to content

Commit ac9f54a

Browse files
ptitjanonyalldawson
authored andcommitted
test_qgslayoutexporter: Fix test for qt 6.9
Starting with Qt 6.9 QPdfWriter generates a pdf with an empty author by default.
1 parent a142f15 commit ac9f54a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/src/python/test_qgslayoutexporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,10 @@ def testExportToPdfGeoreference(self):
787787
self.assertAlmostEqual(geoTransform[5], -13.183886222186642, 4)
788788

789789
# check that the metadata has _not_ been added to the exported PDF
790+
# starting with Qt 6.9 QPdfWriter generates a pdf with an empty
791+
# author by default
790792
metadata = d.GetMetadata()
791-
self.assertNotIn("AUTHOR", metadata)
793+
self.assertEqual(metadata.get("AUTHOR", ""), "")
792794

793795
exporter = QgsLayoutExporter(l)
794796
# setup settings

0 commit comments

Comments
 (0)