# HG changeset patch # User John Rouillard # Date 1714277322 14400 # Node ID 80cf6098ea65ad2790642b7ed163a126e81b23e1 # Parent 608f140237c9d644c5b43a20eafd7d2814b01082 issue2551334 - Get test suite to pass using windows python Mark classes that use requests library with skip markers if requests is not available. diff -r 608f140237c9 -r 80cf6098ea65 test/test_liveserver.py --- 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