17 lines
471 B
Python
17 lines
471 B
Python
# Copyright (c) 2026 Umber
|
|
#
|
|
# Licensed under the Apache License, Version 2.0; see LICENSE.
|
|
|
|
"""Pytest hooks: default FIWI_SSH_CONFIG so SSH avoids broken system ssh_config.d drop-ins."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
from pathlib import Path
|
|
|
|
|
|
def pytest_configure(config) -> None:
|
|
minimal = Path(__file__).resolve().parent / "fixtures" / "ssh_config_minimal"
|
|
if minimal.is_file():
|
|
os.environ.setdefault("FIWI_SSH_CONFIG", str(minimal))
|