Skip to content

Commit

Permalink
Add missing unit test for sourceRef length
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Oct 22, 2021
1 parent bb220fe commit 6f58dd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/alerters/thehive_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def test_thehive_alerter(caplog):
actual_data = json.loads(mock_post_request.call_args_list[0][1]['data'])
# The date and sourceRef are autogenerated, so we can't expect them to be a particular value
del actual_data['date']

assert len(actual_data['sourceRef']) == 36
del actual_data['sourceRef']

assert expected_data == actual_data
Expand Down

0 comments on commit 6f58dd6

Please sign in to comment.