SuccessValidator#

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

Bases: OutputValidator

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

Parameters:

expect – If all strings specified here are found, the command was successful

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

Methods

__init__(expect)