Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvin-M committed Jul 10, 2020
1 parent 05f2b39 commit 552b836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/substrapp/tests/tests_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ def __init__(self):
mock.patch('substrapp.tasks.tasks.uncompress_content'), \
mock.patch('substrapp.tasks.tasks.json.loads') as mjson_loads, \
mock.patch('substrapp.tasks.tasks.AsyncResult') as masyncres, \
mock.patch('substrapp.tasks.tasks.get_owner') as get_owner:
mock.patch('substrapp.tasks.tasks.get_owner') as get_owner,\
mock.patch('substrapp.tasks.tasks.find_training_step_tuple_from_key') as gettuple:

msettings.return_value = FakeSettings()
mget_hash.return_value = 'owkinhash'
Expand All @@ -392,6 +393,7 @@ def __init__(self):
mprepare_opener.return_value = 'opener'
mprepare_data_sample.return_value = 'data'
get_owner.return_value = 'foo'
gettuple.return_value = None, subtuple[0]

masyncres.return_value.state = 'PENDING'

Expand Down

0 comments on commit 552b836

Please sign in to comment.