Skip to content
Permalink
Browse files
fix forgotten test
  • Loading branch information
vcloarec authored and nyalldawson committed Jun 10, 2021
1 parent 8fd4080 commit b0c8c65f0c53493f45150276686c4a0e2a6a5ec5
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/analysis/testqgsprocessing.cpp
@@ -8330,7 +8330,7 @@ void TestQgsProcessing::parameterMeshDatasetTime()
QVERIFY( !def->checkValueIsAcceptable( value ) );
value[QStringLiteral( "value" )] = QVariantList() << 1 << 5;
QVERIFY( def->checkValueIsAcceptable( value ) );
QCOMPARE( def->valueAsPythonString( value, context ), QStringLiteral( "{'type': 'dataset-time-step','value': QgsMeshDatasetIndex(1,5)}" ) );
QCOMPARE( def->valueAsPythonString( value, context ), QStringLiteral( "{'type': 'dataset-time-step','value': [1,5]}" ) );
QCOMPARE( QgsProcessingParameterMeshDatasetTime::valueAsTimeType( value ), QStringLiteral( "dataset-time-step" ) );
QVERIFY( !QgsProcessingParameterMeshDatasetTime::timeValueAsDefinedDateTime( value ).isValid() );
QVERIFY( QgsProcessingParameterMeshDatasetTime::timeValueAsDatasetIndex( value ) == QgsMeshDatasetIndex( 1, 5 ) );

0 comments on commit b0c8c65

Please sign in to comment.