Skip to content

Commit e5ba1f2

Browse files
committed
issue2551334 - Get test suite to pass using windows python
Mark classes that use requests library with skip markers if requests is not available.
1 parent 8a36baa commit e5ba1f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_liveserver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def create_app(self):
139139
return RequestDispatcher(self.dirname)
140140

141141

142+
@skip_requests
142143
class BaseTestCases(WsgiSetup):
143144
"""Class with all tests to run against wsgi server. Is reused when
144145
wsgi server is started with various feature flags
@@ -1217,6 +1218,7 @@ def test_fts(self):
12171218
f = requests.get(self.url_base() + "?@search_text=RESULT")
12181219
self.assertIn("foo bar", f.text)
12191220

1221+
@skip_requests
12201222
class TestFeatureFlagCacheTrackerOff(BaseTestCases, WsgiSetup):
12211223
"""Class to run all test in BaseTestCases with the cache_tracker
12221224
feature flag disabled when starting the wsgi server
@@ -1232,6 +1234,7 @@ def create_app(self):
12321234
return RequestDispatcher(self.dirname, feature_flags=ff)
12331235

12341236
@skip_postgresql
1237+
@skip_requests
12351238
class TestPostgresWsgiServer(BaseTestCases, WsgiSetup):
12361239
"""Class to run all test in BaseTestCases with the cache_tracker
12371240
feature enabled when starting the wsgi server
@@ -1319,6 +1322,7 @@ def test_native_fts(self):
13191322
f = requests.get(self.url_base() + "?@search_text=ts:RESULT")
13201323
self.assertIn("foo bar RESULT", f.text)
13211324

1325+
@skip_requests
13221326
class TestApiRateLogin(WsgiSetup):
13231327
"""Class to run test in BaseTestCases with the cache_tracker
13241328
feature flag enabled when starting the wsgi server

0 commit comments

Comments
 (0)