import demistomock as demisto from ProofpointTAPMostAttackedUsers import main def test_default_value(mocker): """ Check when no values are available, the script will return the widget chart default value. """ mocker.patch.object( demisto, "executeCommand", return_value=[{"Contents": "Unsupported Command proofpoint-list-most-attacked-users"}] ) return_results_mock = mocker.patch("ProofpointTAPMostAttackedUsers.return_results") main() assert return_results_mock.call_args.args[0] == '[{"name": "", "data": [], "color": ""}]'