@@ -65,8 +65,6 @@ class TestQgsGeoNodeConnection: public QObject
65
65
66
66
QString mKartozaGeoNodeGeoServerName ;
67
67
QString mKartozaGeoNodeGeoServerURL ;
68
-
69
- bool mSkipRemoteTest ;
70
68
};
71
69
72
70
// Runs before all unit tests
@@ -82,9 +80,6 @@ void TestQgsGeoNodeConnection::initTestCase()
82
80
mKartozaGeoNodeGeoServerName = QStringLiteral ( " Staging Kartoza GeoNode GeoServer" );
83
81
mKartozaGeoNodeGeoServerURL = QStringLiteral ( " http://staginggs.geonode.kartoza.com" );
84
82
85
- // Change it to skip remote testing
86
- mSkipRemoteTest = true ;
87
-
88
83
// Add Demo GeoNode Connection
89
84
QgsSettings settings;
90
85
@@ -99,7 +94,7 @@ void TestQgsGeoNodeConnection::initTestCase()
99
94
// Test the creation of geonode connection
100
95
void TestQgsGeoNodeConnection::testCreation ()
101
96
{
102
- if ( mSkipRemoteTest )
97
+ if ( QgsTest::isTravis () )
103
98
{
104
99
QSKIP ( " Skip remote test for faster testing" );
105
100
}
@@ -128,7 +123,7 @@ void TestQgsGeoNodeConnection::testCreation()
128
123
// Test Layer API
129
124
void TestQgsGeoNodeConnection::testLayerAPI ()
130
125
{
131
- if ( mSkipRemoteTest )
126
+ if ( QgsTest::isTravis () )
132
127
{
133
128
QSKIP ( " Skip remote test for faster testing" );
134
129
}
@@ -143,7 +138,7 @@ void TestQgsGeoNodeConnection::testLayerAPI()
143
138
// Test Style API
144
139
void TestQgsGeoNodeConnection::testStyleAPI ()
145
140
{
146
- if ( mSkipRemoteTest )
141
+ if ( QgsTest::isTravis () )
147
142
{
148
143
QSKIP ( " Skip remote test for faster testing" );
149
144
}
0 commit comments