Skip to content

Commit

Permalink
Test file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhanshu-metron committed Oct 21, 2024
1 parent 73e6752 commit 189d7c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Packs/Cybereason/Integrations/Cybereason/Cybereason_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,11 +972,12 @@ def test_close_fetchfile_command(mocker):
def test_malop_to_incident(mocker):
from Cybereason import malop_to_incident
args = {
"guidString": "12345A"
"guidString": "12345A",
"status": 0
}
command_output = malop_to_incident(args)

Check failure on line 978 in Packs/Cybereason/Integrations/Cybereason/Cybereason_test.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

test_malop_to_incident AttributeError: 'str' object has no attribute 'get'

Check failure on line 978 in Packs/Cybereason/Integrations/Cybereason/Cybereason_test.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

test_malop_to_incident AttributeError: 'str' object has no attribute 'get'

Check failure on line 978 in Packs/Cybereason/Integrations/Cybereason/Cybereason_test.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

test_malop_to_incident AttributeError: 'str' object has no attribute 'get'

Check failure on line 978 in Packs/Cybereason/Integrations/Cybereason/Cybereason_test.py

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

test_malop_to_incident AttributeError: 'str' object has no attribute 'get'

assert command_output['name'] == "Cybereason Malop 12345A"
assert ((command_output['name'] == "Cybereason Malop 12345A") and (command_output['status'] == 0))

with pytest.raises(Exception) as exc_info:
command_output = malop_to_incident("args")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def test_main(mocker):
test_data = {
'labels': [
{'type': 'x', 'value': 'not found'},
{'type': 'guidString', 'value': '12345678'}
{'type': 'guidString', 'value': '12345678'},
{'type': 'x', 'value': 'nothing'},
{'type': 'GUID', 'value': '12345678'},
{'type': 'y', 'value': 'nanana'}
]
}

Expand Down

0 comments on commit 189d7c2

Please sign in to comment.