mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
RequestHeader Submitted by: Giannis Christodoulou <io.xristod gmail.com> Github: closes #594 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1931424 13f79535-47bb-0310-9956-ffa450edef68
26 lines
700 B
Python
26 lines
700 B
Python
import inspect
|
|
import logging
|
|
import os
|
|
|
|
from pyhttpd.env import HttpdTestEnv, HttpdTestSetup
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
|
class CoreTestSetup(HttpdTestSetup):
|
|
|
|
def __init__(self, env: 'HttpdTestEnv'):
|
|
super().__init__(env=env)
|
|
self.add_source_dir(os.path.dirname(inspect.getfile(CoreTestSetup)))
|
|
self.add_modules(["cgid","include","userdir","suexec","headers"])
|
|
|
|
|
|
class CoreTestEnv(HttpdTestEnv):
|
|
|
|
def __init__(self, pytestconfig=None):
|
|
super().__init__(pytestconfig=pytestconfig)
|
|
self.add_httpd_log_modules(["http", "core"])
|
|
|
|
def setup_httpd(self, setup: HttpdTestSetup = None):
|
|
super().setup_httpd(setup=CoreTestSetup(env=self))
|