Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Oct 3, 2024
1 parent 9618f28 commit e8f1b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/src/gui/testqgssqlcomposerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void TestQgsSQLComposerDialog::testSelectFunction()
QCOMPARE( getFunctionsCombo( d )->itemText( 1 ), QString( "first_func()" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 2 ), QString( "second_func(): int" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 3 ), QString( "third_func(1 argument(s))" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 4 ), QString( "fourth_func(1 to 2 arguments)" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 4 ), QString( "fourth_func(1 to 2 argument(s))" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 5 ), QString( "fifth_func(1 argument(s) or more)" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 6 ), QString( "sixth_func(arg1, arg2: double, arg3: geometry, int)" ) );
QCOMPARE( getFunctionsCombo( d )->itemText( 7 ), QString( "seventh_func(arg1[, arg2: double])" ) );
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorfilewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def testOverwriteGPKG(self):
filename,
options)
self.assertEqual(write_result, QgsVectorFileWriter.WriterError.ErrCreateDataSource)
self.assertEqual(error_message, 'Cannot overwrite a OGR layer in place')
self.assertEqual(error_message, 'Cannot overwrite an OGR layer in place')

options.layerName = 'test2'
write_result, error_message = QgsVectorFileWriter.writeAsVectorFormat(
Expand Down

0 comments on commit e8f1b34

Please sign in to comment.