import pytest @pytest.fixture def gateway_paths(tmp_path, monkeypatch): """Redirect GATEWAY_STATE_DIR/GATEWAY_DYNAMIC_DIR to tmp_path, the same env-var-override convention furtka-core's own tests use via FURTKA_*. """ state_dir = tmp_path / "state" dynamic_dir = tmp_path / "dynamic" monkeypatch.setenv("GATEWAY_STATE_DIR", str(state_dir)) monkeypatch.setenv("GATEWAY_DYNAMIC_DIR", str(dynamic_dir)) return {"state_dir": state_dir, "dynamic_dir": dynamic_dir}