Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jan 13, 2021
1 parent 5c84ffc commit 4bb69d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_file_observable_named_file(mock_post):
test_id = 'AV55EOIsPQ_zDQrlj4a9'
with mock.patch('thehive4py.models.open', mock.mock_open()):
file_observable = CaseObservable(dataType='file',
data=['pic.png'],
data='pic.png',
tlp=1,
ioc=True,
tags=['thehive4py'],
Expand All @@ -34,7 +34,7 @@ def test_file_observable_file_object(mock_post):
our_file = mock.Mock(wraps=StringIO(u'contents of file'))
with mock.patch('thehive4py.models.open', mock.mock_open()):
file_observable = CaseObservable(dataType='file',
data=[(our_file, 'pic.png')],
data=(our_file, 'pic.png'),
tlp=1,
ioc=True,
tags=['thehive4py'],
Expand Down

0 comments on commit 4bb69d3

Please sign in to comment.