Adding upstream version 2.4.63.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
93c6f9029a
commit
7263481e48
3104 changed files with 900776 additions and 0 deletions
25
test/modules/core/env.py
Normal file
25
test/modules/core/env.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
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"])
|
||||
|
||||
|
||||
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))
|
Loading…
Add table
Add a link
Reference in a new issue