File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6020,13 +6020,13 @@ void TestQgsProcessing::modelScope()
6020
6020
pc.setProject ( &p );
6021
6021
p.setFileName ( TEST_DATA_DIR + QStringLiteral ( " /test_file.qgs" ) );
6022
6022
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 ) );
6025
6025
6026
6026
alg.setSourceFilePath ( TEST_DATA_DIR + QStringLiteral ( " /processing/my_model.model3" ) );
6027
6027
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" ) );
6030
6030
6031
6031
QgsExpressionContext ctx = alg.createExpressionContext ( QVariantMap (), pc );
6032
6032
QVERIFY ( scope->hasVariable ( QStringLiteral ( " model_path" ) ) );
You can’t perform that action at this time.
0 commit comments