Skip to content

Commit d281c8a

Browse files
committed
Fix build
1 parent 60a1d63 commit d281c8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/src/analysis/testqgsprocessing.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -6020,13 +6020,13 @@ void TestQgsProcessing::modelScope()
60206020
pc.setProject( &p );
60216021
p.setFileName( TEST_DATA_DIR + QStringLiteral( "/test_file.qgs" ) );
60226022
scope.reset( QgsExpressionContextUtils::processingModelAlgorithmScope( &alg, params, pc ) );
6023-
QCOMPARE( scope->variable( QStringLiteral( "model_path" ) ).toString(), TEST_DATA_DIR + QStringLiteral( "/test_file.qgs" ) );
6024-
QCOMPARE( scope->variable( QStringLiteral( "model_folder" ) ).toString(), TEST_DATA_DIR );
6023+
QCOMPARE( scope->variable( QStringLiteral( "model_path" ) ).toString(), QStringLiteral( TEST_DATA_DIR ) + QStringLiteral( "/test_file.qgs" ) );
6024+
QCOMPARE( scope->variable( QStringLiteral( "model_folder" ) ).toString(), QStringLiteral( TEST_DATA_DIR ) );
60256025

60266026
alg.setSourceFilePath( TEST_DATA_DIR + QStringLiteral( "/processing/my_model.model3" ) );
60276027
scope.reset( QgsExpressionContextUtils::processingModelAlgorithmScope( &alg, params, pc ) );
6028-
QCOMPARE( scope->variable( QStringLiteral( "model_path" ) ).toString(), TEST_DATA_DIR + QStringLiteral( "/processing/my_model.model3" ) );
6029-
QCOMPARE( scope->variable( QStringLiteral( "model_folder" ) ).toString(), TEST_DATA_DIR + QStringLiteral( "/processing" ) );
6028+
QCOMPARE( scope->variable( QStringLiteral( "model_path" ) ).toString(), QStringLiteral( TEST_DATA_DIR ) + QStringLiteral( "/processing/my_model.model3" ) );
6029+
QCOMPARE( scope->variable( QStringLiteral( "model_folder" ) ).toString(), QStringLiteral( TEST_DATA_DIR ) + QStringLiteral( "/processing" ) );
60306030

60316031
QgsExpressionContext ctx = alg.createExpressionContext( QVariantMap(), pc );
60326032
QVERIFY( scope->hasVariable( QStringLiteral( "model_path" ) ) );

0 commit comments

Comments
 (0)