1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/tests/base_config_test.py
Ilya Kreymer 58f39f0558 setup: update to warcio==1.2
add ensure_http_headers=True when reading WARC records
tests: fix pytest warnings, use webtest.TestApp instead of TestApp
2017-04-29 13:47:54 -07:00

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))