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 a4b770d34e new-pywb refactor!
frontendapp compatibility
- add support for separate not found page for 404s (not_found.html)
- support for exception handling with error template (error.html)
- support for home page (index.html)
- add memento headers for replay
- add referrer fallback check
- tests: port integration tests for front-end replay, cdx server
- not included: proxy mode, exact redirect mode, non-framed replay
- move unused tests to tests_disabled
- cli: add optional werkzeug profiler with --profile flag
2017-02-27 19:07:51 -08:00

20 lines
590 B
Python

from gevent import monkey; monkey.patch_all(thread=False)
from webtest import TestApp
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 = TestApp(FrontEndApp(config_file=config_file))