feat(exit_code 3): add -z option (#1848)

Co-authored-by: sergargar <sergargar@users.noreply.github.com>
This commit is contained in:
Sergio Garcia
2023-02-07 09:51:46 +01:00
committed by GitHub
parent 13316b68aa
commit ed54c5b8b9
3 changed files with 20 additions and 0 deletions

View File

@@ -146,6 +146,16 @@ class Test_Parser:
parsed = self.parser.parse(command)
assert parsed.quiet
def test_root_parser_exit_code_3_short(self):
command = [prowler_command, "-z"]
parsed = self.parser.parse(command)
assert parsed.ignore_exit_code_3
def test_root_parser_exit_code_3_long(self):
command = [prowler_command, "--ignore-exit-code-3"]
parsed = self.parser.parse(command)
assert parsed.ignore_exit_code_3
def test_root_parser_default_output_modes(self):
command = [prowler_command]
parsed = self.parser.parse(command)