diff options
author | Stefan Eissing <icing@apache.org> | 2021-10-11 16:08:57 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-10-11 16:08:57 +0200 |
commit | ded853c7cadc6a2b5590a0ceee5cddd0444da17a (patch) | |
tree | 2a8d944d77ba160559872ab5365bfe3a8682dccd /test/conftest.py | |
parent | mod_proxy_uwsgi: Remove duplicate slashes at the beginning of PATH_INFO. (diff) | |
download | apache2-ded853c7cadc6a2b5590a0ceee5cddd0444da17a.tar.xz apache2-ded853c7cadc6a2b5590a0ceee5cddd0444da17a.zip |
* test infrastruture:
- moved common pytest code into test/pyhttpd
- does basic setup for a list of host names and some htdocs
- added modules/core and moved encoding tests from http2 there
- all test methods have module name in in prefix now, so to test only core, run
> pytest -k test_core
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894134 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/conftest.py')
-rw-r--r-- | test/conftest.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py new file mode 100644 index 0000000000..b12b1d6d78 --- /dev/null +++ b/test/conftest.py @@ -0,0 +1,12 @@ +import sys +import os + +sys.path.append(os.path.join(os.path.dirname(__file__), '.')) + +from pyhttpd.env import HttpdTestEnv + +def pytest_report_header(config, startdir): + env = HttpdTestEnv() + return f"[apache httpd: {env.get_httpd_version()}, mpm: {env.mpm_type}, {env.prefix}]" + + |