1
0

test_retcodes_error.py 353 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. # Import Python Libraries
  3. from __future__ import absolute_import
  4. import sys
  5. # Import Pepper Libraries
  6. import pepper
  7. # Import Testing Libraries
  8. import pytest
  9. def test_fail_any():
  10. sys.argv = ['pepper', '--fail-all', '--fail-any', 'minion_id', 'request']
  11. with pytest.raises(SystemExit):
  12. pepper.script.Pepper()()