pytest_mh.cli

Module Attributes

CLIBuilderArgs

CLIBuilder args format.

Classes

CLIBuilder(ssh)

CLIBuilderArgs

CLIBuilder args format.

Enum(value)

Generic enumeration.

SSHClient(host, *, user, password, port, ...)

Interactive SSH client.

SSHPowerShellProcess(*args, **kwargs)

SSH Process with Powershell.

SSHProcess(*, command[, cwd, env, input, shell])

SSH Process.

auto()

Instances are replaced with an appropriate value in Enum class suites.

class pytest_mh.cli.CLIBuilder(ssh: SSHClient)

Bases: object

class option(value)

Bases: Enum

Command line parameter types.

PLAIN = 1

Use plain parameter value without any modification.

VALUE = 2

Use parameter value but enclose it in quotes in script mode.

SWITCH = 3

Parameter is a switch which is enabled if value is True.

POSITIONAL = 4

Parameter is a positional argument.

command(command: str, args: dict[str, tuple[option, Any] | None]) str
argv(command: str, args: dict[str, tuple[option, Any] | None]) list[str]
args(args: dict[str, tuple[option, Any] | None], quote_value=False) list[str]
pytest_mh.cli.CLIBuilderArgs

CLIBuilder args format.