Skip to content

Commit 189d7c2

Browse files
Test file changes
1 parent 73e6752 commit 189d7c2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Packs/Cybereason/Integrations/Cybereason/Cybereason_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,12 @@ def test_close_fetchfile_command(mocker):
972972
def test_malop_to_incident(mocker):
973973
from Cybereason import malop_to_incident
974974
args = {
975-
"guidString": "12345A"
975+
"guidString": "12345A",
976+
"status": 0
976977
}
977978
command_output = malop_to_incident(args)
978979

979-
assert command_output['name'] == "Cybereason Malop 12345A"
980+
assert ((command_output['name'] == "Cybereason Malop 12345A") and (command_output['status'] == 0))
980981

981982
with pytest.raises(Exception) as exc_info:
982983
command_output = malop_to_incident("args")

Packs/Cybereason/Scripts/CybereasonPreProcessingExample/CybereasonPreProcessingExample_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ def test_main(mocker):
1414
test_data = {
1515
'labels': [
1616
{'type': 'x', 'value': 'not found'},
17-
{'type': 'guidString', 'value': '12345678'}
17+
{'type': 'guidString', 'value': '12345678'},
18+
{'type': 'x', 'value': 'nothing'},
19+
{'type': 'GUID', 'value': '12345678'},
20+
{'type': 'y', 'value': 'nanana'}
1821
]
1922
}
2023

0 commit comments

Comments
 (0)