Files
clan-core/pkgs/clan-cli/clan_cli/tests/hosts.py
Jörg Thalheim d5b09f18ed RET504: fix
2025-08-26 15:55:23 +02:00

23 lines
487 B
Python

import os
import pwd
from pathlib import Path
import pytest
from clan_cli.tests.sshd import Sshd
from clan_lib.ssh.remote import Remote
@pytest.fixture
def hosts(sshd: Sshd) -> list[Remote]:
login = pwd.getpwuid(os.getuid()).pw_name
return [
Remote(
address="127.0.0.1",
port=sshd.port,
user=login,
private_key=Path(sshd.key),
host_key_check="none",
command_prefix="local_test",
),
]