This commit is contained in:
Julius Unverfehrt 2022-03-04 09:57:03 +01:00
parent f6ce3be25e
commit 666bb067ae
2 changed files with 4 additions and 1 deletions

View File

@ -33,4 +33,5 @@ def mock_payload():
def mock_make_load_data():
def load_data(payload):
return storage_data
return load_data

View File

@ -17,7 +17,9 @@ def test_analyse_returns_analysis(mock_post, storage_data, mock_response):
@patch("requests.post")
def test_process_returns_dossier_id_file_id_predictions(mock_post, mock_make_load_data, storage_data, mock_response, mock_payload):
def test_process_returns_dossier_id_file_id_predictions(
mock_post, mock_make_load_data, storage_data, mock_response, mock_payload
):
mock_post.return_value = mock_response
analyze = make_analyzer(CONFIG.mock_analysis_endpoint)