""" Pytest configuration and shared fixtures. """ import pytest @pytest.fixture(autouse=True) def reset_config_before_test(monkeypatch): """ Reset configuration before each test. This prevents config from one test affecting another test. """ # Clear all GONDULF_ environment variables import os gondulf_vars = [key for key in os.environ.keys() if key.startswith("GONDULF_")] for var in gondulf_vars: monkeypatch.delenv(var, raising=False)