Skip to content

Commit

Permalink
Remove useless test
Browse files Browse the repository at this point in the history
This is just testing a very low level Qt method which has changed behavior in Qt 6
  • Loading branch information
nyalldawson committed Dec 4, 2024
1 parent c0bea90 commit 390ac14
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/src/auth/testqgsauthoauth2method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,6 @@ void TestQgsAuthOAuth2Method::testOAuth2Config()
QgsAuthOAuth2Config *config1 = new QgsAuthOAuth2Config( qApp );
QVERIFY( !config1->isValid() );

qDebug() << "Verify property interface";
QObject *configo = config1;
QCOMPARE( configo->property( "configType" ).toString(), QString( "1" ) ); // Custom
config1->setConfigType( QgsAuthOAuth2Config::ConfigType::Predefined );
QCOMPARE( configo->property( "configType" ).toString(), QString( "0" ) );
QCOMPARE( QString( "%1" ).arg( static_cast<int>( config1->configType() ) ), QString( "0" ) );
configo->setProperty( "configType", "Custom" );
QCOMPARE( configo->property( "configType" ).toString(), QString( "1" ) );

config1->deleteLater();

qDebug() << "Verify base object validity";
QgsAuthOAuth2Config *config2 = baseConfig();
QVERIFY( !config2->isValid() );
Expand Down

0 comments on commit 390ac14

Please sign in to comment.