From 0b84798b7514aec44c8ba0e455e9825b7982224c Mon Sep 17 00:00:00 2001 From: Lucky Suman Date: Fri, 13 Sep 2019 19:38:55 +0530 Subject: [PATCH] Add hyperparams in unit test. --- 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 4d20978..029cc21 100644 --- a/tests/test_stack_report_helper.py +++ b/tests/test_stack_report_helper.py @@ -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