clan-cli: Simplify HostKeyCheck to a Literal instead of an Enum

This commit is contained in:
Qubasa
2025-06-23 15:08:44 +02:00
parent c4b3b26fa6
commit 217f55adec
10 changed files with 19 additions and 74 deletions

View File

@@ -3,7 +3,6 @@ import pwd
from pathlib import Path
import pytest
from clan_cli.ssh.host_key import HostKeyCheck
from clan_cli.tests.sshd import Sshd
from clan_lib.ssh.remote import Remote
@@ -17,7 +16,7 @@ def hosts(sshd: Sshd) -> list[Remote]:
port=sshd.port,
user=login,
private_key=Path(sshd.key),
host_key_check=HostKeyCheck.NONE,
host_key_check="none",
command_prefix="local_test",
)
]