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

__init__(expect: str | list[str]) None[source]#

Methods

__init__(expect)