OutputValidator#
- class maize.utilities.validation.OutputValidator(expect: str | list[str])[source]#
Bases:
ValidatorValidate the STDOUT / STDERR of an external command.
Calling an instance with a
subprocess.CompletedProcessobject 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)