def patch_args_double_mask(monkeypatch, request, correct_argv, cleanup_temp): monkeypatch.setattr( "sys.argv", [ "pymask", "-i", INPUT, "--mask", PF, "-m", PF2, "-o", TEMP_FILE ] ) arguments.masking_utility() yield
def test_masking_utility(patch_args_clean): arguments.masking_utility()
def test_masking_crash(patch_args_critical): with pytest.raises(IndexError): arguments.masking_utility()
def test_masking_crash_with_or_and_xor(patch_args_critical_or_and_xor): with pytest.raises(ValueError): arguments.masking_utility()
def test_masking_warning(patch_args_warning): with pytest.warns(UserWarning): arguments.masking_utility()