Browse Source

fix ci problem of function length

tags/v0.5.0-beta
chenchao99 5 years ago
parent
commit
d9508ea7e3
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      tests/ut/profiler/common/validator/test_validator.py

+ 6
- 2
tests/ut/profiler/common/validator/test_validator.py View File

@@ -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


Loading…
Cancel
Save