Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /etc/apache2/conf.d/modsec_vendor_configs/OWASP3/tests/regression/ |
try: import ConfigParser as configparser except ImportError: import configparser import os import pytest def pytest_addoption(parser): parser.addoption('--config', action='store', default='modsec2-apache') @pytest.fixture(scope='session') def config(request): cp = configparser.RawConfigParser() cp.read(os.path.join(os.path.dirname(__file__), 'config.ini')) return dict(cp.items(request.config.getoption('--config')))