IncidentsCheck-Widget-UnassignedFailingIncidents
Data output script for populating the dashboard number graph widget with the number of unassigned failing incidents.
Details
| ID | IncidentsCheck-Widget-UnassignedFailingIncidents |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | widget failedIncidents |
README
Data output script for populating the dashboard number graph widget with the number of unassigned failing incidents.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | widget, failedIncidents |
| Cortex XSOAR Version | 6.0.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.
import pytest import demistomock as demisto from IncidentsCheck_Widget_UnassignedFailingIncidents import main @pytest.mark.parametrize("list_, expected", [([{"Contents": "7,4,1"}], 3), ([{"Contents": ""}], 0), ([{}], 0)]) def test_script(mocker, list_, expected): mocker.patch.object(demisto, "executeCommand", return_value=list_) mocker.patch.object(demisto, "results") main() contents = demisto.results.call_args[0][0] assert contents == expected