Fix tests

This commit is contained in:
Matthias Kuhn 2018-03-01 15:43:59 -05:00
parent b20889a6b9
commit b37c410dbf
2 changed files with 1 additions and 4 deletions

View File

@ -146,9 +146,6 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
setupIntEditor( minval, max, step, mIntSpinBox, this );
if ( config( QStringLiteral( "Suffix" ) ).isValid() )
mIntSpinBox->setSuffix( config( QStringLiteral( "Suffix" ) ).toString() );
connect( mIntSpinBox, static_cast < void ( QSpinBox::* )( int ) > ( &QSpinBox::valueChanged ),
this, [ = ]( int ) { emitValueChanged(); } );
}
else
{

View File

@ -466,7 +466,7 @@ class TestPyQgsPostgresProvider(unittest.TestCase, ProviderTestCase):
# check new values
self.assertTrue(vl.getFeatures('id=1').nextFeature(f))
self.assertEqual(f.attributes(), [1, 1, 0])
self.assertEqual(f.attributes(), [1, 1, NULL])
def testTransactionTuple(self):
# create a vector layer based on postgres