Skip to content

Commit

Permalink
Add hyperparams in unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-suman committed Sep 13, 2019
1 parent 2722a98 commit 831aadd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_stack_report_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,11 @@ def test_invoke_emr_api_success(_mock):
@mock.patch('requests.post', side_effect=mock_emr_api_fail)
def test_invoke_emr_api_failure(_mock):
"""Test invoke emr api with status 400."""
result = r.invoke_emr_api('test-bucket', 'maven', '2019-01-03', 'http://github.com/test/test')
result = r.invoke_emr_api('test-bucket', 'maven', '2019-01-03', 'http://github.com/test/test', {
"lower_limit": 13,
"upper_limit": 15,
"latent_factor": 300
})

assert result is None

Expand Down

0 comments on commit 831aadd

Please sign in to comment.