Skip to content

Commit

Permalink
make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Oct 5, 2023
1 parent 069a339 commit ed3bf65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'})

Expand Down

0 comments on commit ed3bf65

Please sign in to comment.