Details
| ID | ConvertAllExcept |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | transformer |
README
Convert all chosen values but exceptions.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| value | Value to convert. |
| convertTo | String to convert to. |
| except | Comma separated list of exceptions. |
Outputs
There are no outputs for this script.
import pytest @pytest.mark.parametrize( "args, expected_result", [ ({"value": "Value_to_convert", "convertTo": "hello", "except": "Value_to_convert"}, "Value_to_convert"), ], ) def test_ConvertAllExcept(args, expected_result): """ Given: - A dict of args. When: - Running ConvertAllExcept script. Then: - Validating the value of the script. """ from ConvertAllExcept import main result = main(args) assert result == expected_result