Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #35503 from pblottiere/ut_type
Add unit test on ogcapif type
  • Loading branch information
pblottiere committed Apr 1, 2020
2 parents eef58e6 + a97b0d6 commit 9c857ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/server/testqgsserverquerystringparameter.cpp
Expand Up @@ -118,6 +118,7 @@ void TestQgsServerQueryStringParameter::testArguments()
QCOMPARE( p.value( ctx ).type(), QVariant::Double );
request.setUrl( QStringLiteral( "http://www.qgis.org/api/?parameter1=a%20string" ) );
QVERIFY_EXCEPTION_THROWN( p.value( ctx ), QgsServerApiBadRequestException );
QCOMPARE( QString::fromStdString( p.data()["schema"]["type"] ), QString( "number" ) );

// Test list
p.mType = QgsServerQueryStringParameter::Type::List;
Expand Down

0 comments on commit 9c857ec

Please sign in to comment.