OutputValidator#
- class maize.utilities.validation.OutputValidator(expect: str | list[str])[source]#
Bases:
Validator
Validate the STDOUT / STDERR of an external command.
Calling an instance with a
subprocess.CompletedProcess
object should return boolean indicating the success of the command.- Parameters:
expect – String or list of strings to look for in the output
Methods
__init__
(expect)