mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
add ensure_http_headers=True when reading WARC records tests: fix pytest warnings, use webtest.TestApp instead of TestApp
20 lines
585 B
Python
20 lines
585 B
Python
from gevent import monkey; monkey.patch_all(thread=False)
|
|
|
|
import webtest
|
|
|
|
from pywb.webagg.test.testutils import BaseTestClass
|
|
|
|
from pywb.urlrewrite.frontendapp import FrontEndApp
|
|
import os
|
|
|
|
|
|
# ============================================================================
|
|
class BaseConfigTest(BaseTestClass):
|
|
@classmethod
|
|
def setup_class(cls, config_file):
|
|
super(BaseConfigTest, cls).setup_class()
|
|
config_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), config_file)
|
|
cls.testapp = webtest.TestApp(FrontEndApp(config_file=config_file))
|
|
|
|
|