From d9508ea7e312926de907526097b793e25c53b801 Mon Sep 17 00:00:00 2001 From: chenchao99 Date: Fri, 19 Jun 2020 20:35:09 +0800 Subject: [PATCH] fix ci problem of function length --- tests/ut/profiler/common/validator/test_validator.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/ut/profiler/common/validator/test_validator.py b/tests/ut/profiler/common/validator/test_validator.py index 571a0a1b..0c1c8c82 100644 --- a/tests/ut/profiler/common/validator/test_validator.py +++ b/tests/ut/profiler/common/validator/test_validator.py @@ -73,6 +73,8 @@ class TestMinddataPipelineCondition: assert exc_info.value.message == 'The group_condition in search_condition error, ' \ 'The limit must be int.' + def test_validate_minddata_pipeline_condition_4(self): + """Test the method exceptions.""" condition = { 'group_condition': { 'limit': 0 @@ -106,7 +108,7 @@ class TestMinddataPipelineCondition: assert exc_info.value.message == 'The group_condition in search_condition error, ' \ 'The offset must le 1000000.' - def test_validate_minddata_pipeline_condition_4(self): + def test_validate_minddata_pipeline_condition_5(self): """Test the method exceptions.""" condition = {'sort_condition': 0} with pytest.raises(ProfilerSortConditionException) as exc_info: @@ -150,7 +152,7 @@ class TestMinddataPipelineCondition: assert exc_info.value.message == 'The sort_condition in search_condition error, ' \ 'The sorted type must be ascending or descending.' - def test_validate_minddata_pipeline_condition_5(self): + def test_validate_minddata_pipeline_condition_6(self): """Test the method exceptions.""" condition = { 'filter_condition': '0' @@ -183,6 +185,8 @@ class TestMinddataPipelineCondition: assert exc_info.value.message == 'The filter_condition in search_condition error, ' \ 'The condition must be bool.' + def test_validate_minddata_pipeline_condition_7(self): + """Test the method exceptions.""" condition = { 'filter_condition': { 'op_id': 0