comparison test/test_liveserver.py @ 7577:0abc225864d1

only run TestPostgresWsgiServer if ostgresl is available.
author John Rouillard <rouilj@ieee.org>
date Mon, 24 Jul 2023 00:35:50 -0400
parents 7b481ec7f169
children ec59729b3b7e
comparison
equal deleted inserted replaced
7576:7bdf9c0f74b9 7577:0abc225864d1
6 from roundup.anypy.strings import b2s 6 from roundup.anypy.strings import b2s
7 from roundup.cgi.wsgi_handler import RequestDispatcher 7 from roundup.cgi.wsgi_handler import RequestDispatcher
8 from .wsgi_liveserver import LiveServerTestCase 8 from .wsgi_liveserver import LiveServerTestCase
9 from . import db_test_base 9 from . import db_test_base
10 from time import sleep 10 from time import sleep
11 from .test_postresql import skip_postgresql
11 12
12 from wsgiref.validate import validator 13 from wsgiref.validate import validator
13 14
14 try: 15 try:
15 import requests 16 import requests
1225 else: 1226 else:
1226 # wsgiref/validator.py InputWrapper::readline is broke and 1227 # wsgiref/validator.py InputWrapper::readline is broke and
1227 # doesn't support the max bytes to read argument. 1228 # doesn't support the max bytes to read argument.
1228 return RequestDispatcher(self.dirname, feature_flags=ff) 1229 return RequestDispatcher(self.dirname, feature_flags=ff)
1229 1230
1231 @skip_postgresql
1230 class TestPostgresWsgiServer(BaseTestCases, WsgiSetup): 1232 class TestPostgresWsgiServer(BaseTestCases, WsgiSetup):
1231 """Class to run all test in BaseTestCases with the cache_tracker 1233 """Class to run all test in BaseTestCases with the cache_tracker
1232 feature flag enabled when starting the wsgi server 1234 feature flag enabled when starting the wsgi server
1233 """ 1235 """
1234 1236

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