enrich_exclude_button

This script is only meant to be used to disable the Enrich Excluded button in an indicator. It should not be used otherwise.

python · Common Scripts

Details

IDenrich_exclude_button
Languagepython
From Version8.8.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagsindicator-action-button

README

Script Data


Name Description
Script Type python3
Tags indicator-action-button

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.

from unittest.mock import patch

from EnrichExcludeButton import main


@patch("EnrichExcludeButton.return_error")  # Mock the return_error function in the script module
def test_main(mock_return_error):
    # Call the main function
    main()

    # Assert return_error was called once with the correct message
    mock_return_error.assert_called_once_with("\nThis indicator is enrich excluded")