From 2722a987cf8cfbe0c1e0b3bbbfa5a019ba99c026 Mon Sep 17 00:00:00 2001 From: Lucky Suman Date: Fri, 13 Sep 2019 19:30:21 +0530 Subject: [PATCH] Add test for report helper for invoke emr api --- tests/test_stack_report_helper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_stack_report_helper.py b/tests/test_stack_report_helper.py index af9a820..4d20978 100644 --- a/tests/test_stack_report_helper.py +++ b/tests/test_stack_report_helper.py @@ -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