Skip to content

Commit

Permalink
Add test for report helper for invoke emr api
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-suman committed Sep 13, 2019
1 parent eaf93a7 commit 2722a98
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 @@ -332,7 +332,11 @@ def json(self):
@mock.patch('requests.post', side_effect=mock_emr_api)
def test_invoke_emr_api_success(_mock):
"""Test invoke emr api function with status 200."""
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 2722a98

Please sign in to comment.