![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Public Member Functions | |
| __init__ (self, CliRunner runner, bytes stdout_bytes, bytes stderr_bytes, bytes output_bytes, t.Any return_value, int exit_code, BaseException|None exception, tuple[type[BaseException], BaseException, TracebackType]|None exc_info=None) | |
| str | output (self) |
| str | stdout (self) |
| str | stderr (self) |
| str | __repr__ (self) |
Public Attributes | |
| runner | |
| stdout_bytes | |
| stderr_bytes | |
| output_bytes | |
| return_value | |
| exit_code | |
| exception | |
| exc_info | |
Holds the captured result of an invoked CLI script.
:param runner: The runner that created the result
:param stdout_bytes: The standard output as bytes.
:param stderr_bytes: The standard error as bytes.
:param output_bytes: A mix of ``stdout_bytes`` and ``stderr_bytes``, as the
user would see it in its terminal.
:param return_value: The value returned from the invoked command.
:param exit_code: The exit code as integer.
:param exception: The exception that happened if one did.
:param exc_info: Exception information (exception type, exception instance,
traceback type).
.. versionchanged:: 8.2
``stderr_bytes`` no longer optional, ``output_bytes`` introduced and
``mix_stderr`` has been removed.
.. versionadded:: 8.0
Added ``return_value``.
| str click.testing.Result.output | ( | self | ) |
The terminal output as unicode string, as the user would see it.
.. versionchanged:: 8.2
No longer a proxy for ``self.stdout``. Now has its own independent stream
that is mixing `<stdout>` and `<stderr>`, in the order they were written.
| str click.testing.Result.stderr | ( | self | ) |
The standard error as unicode string.
.. versionchanged:: 8.2
No longer raise an exception, always returns the `<stderr>` string.
| str click.testing.Result.stdout | ( | self | ) |
The standard output as unicode string.