From 889888a3fdfa2a99d205f28cf654f91f96dd9fbb Mon Sep 17 00:00:00 2001 From: nkumar2 Date: Mon, 2 Oct 2023 23:09:09 +0100 Subject: [PATCH] make test pass --- tests/test_submit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_submit.py b/tests/test_submit.py index b8226ef..bec7560 100644 --- a/tests/test_submit.py +++ b/tests/test_submit.py @@ -24,7 +24,8 @@ def test_submit(self): # Set the side_effect attribute to return different responses with patch('cli.submit.requests.post', return_value=mock_submit_response) as mock_post: - self.submitter.submit() + with patch('cli.submit.StudySubmitter.create_submission_config_file'): + self.submitter.submit('test_submission_directory') mock_post.assert_called_once_with('http://www.ebi.ac.uk/eva/v1/submission/initiate', headers={'Accept': 'application/hal+json', 'Authorization': 'Bearer a token'})