FailValidator#

class maize.utilities.validation.FailValidator(expect: str | list[str])[source]#

Bases: OutputValidator

Check if an external command has failed by searching for strings in the output.

Parameters:

expect – String or list of strings to look for in the output, any match will indicate a failure.

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

Methods

__init__(expect)