changeset 7909:80cf6098ea65

issue2551334 - Get test suite to pass using windows python Mark classes that use requests library with skip markers if requests is not available.
author John Rouillard <rouilj@ieee.org>
date Sun, 28 Apr 2024 00:08:42 -0400
parents 608f140237c9
children 296f0a1f8868
files test/test_liveserver.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_liveserver.py	Sat Apr 27 23:24:05 2024 -0400
+++ b/test/test_liveserver.py	Sun Apr 28 00:08:42 2024 -0400
@@ -139,6 +139,7 @@
             return RequestDispatcher(self.dirname)
 
 
+@skip_requests
 class BaseTestCases(WsgiSetup):
     """Class with all tests to run against wsgi server. Is reused when
        wsgi server is started with various feature flags
@@ -1217,6 +1218,7 @@
         f = requests.get(self.url_base() + "?@search_text=RESULT")
         self.assertIn("foo bar", f.text)
 
+@skip_requests
 class TestFeatureFlagCacheTrackerOff(BaseTestCases, WsgiSetup):
     """Class to run all test in BaseTestCases with the cache_tracker
        feature flag disabled when starting the wsgi server
@@ -1232,6 +1234,7 @@
             return RequestDispatcher(self.dirname, feature_flags=ff)
 
 @skip_postgresql
+@skip_requests
 class TestPostgresWsgiServer(BaseTestCases, WsgiSetup):
     """Class to run all test in BaseTestCases with the cache_tracker
        feature enabled when starting the wsgi server
@@ -1319,6 +1322,7 @@
         f = requests.get(self.url_base() + "?@search_text=ts:RESULT")
         self.assertIn("foo bar RESULT", f.text)
 
+@skip_requests
 class TestApiRateLogin(WsgiSetup):
     """Class to run test in BaseTestCases with the cache_tracker
        feature flag enabled when starting the wsgi server

Roundup Issue Tracker: http://roundup-tracker.org/