Skip to content

Commit

Permalink
Merge pull request #16 from whdalsrnt/master
Browse files Browse the repository at this point in the history
Change stat api's test cases
  • Loading branch information
whdalsrnt authored Feb 9, 2021
2 parents d36de63 + 3278473 commit 37b0cc5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions test/service/test_domain_config_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_stat_domain_configs(self, *args):
params = {
'domain_id': self.domain_id,
'query': {
'aggregate': {
'aggregate': [{
'group': {
'keys': [{
'key': 'name',
Expand All @@ -201,11 +201,12 @@ def test_stat_domain_configs(self, *args):
'name': 'Count'
}]
}
},
'sort': {
'name': 'Count',
'desc': True
}
}, {
'sort': {
'key': 'Count',
'desc': True
}
}]
}
}

Expand Down
13 changes: 7 additions & 6 deletions test/service/test_user_config_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def test_stat_user_configs(self, *args):
params = {
'domain_id': self.domain_id,
'query': {
'aggregate': {
'aggregate': [{
'group': {
'keys': [{
'key': 'name',
Expand All @@ -197,11 +197,12 @@ def test_stat_user_configs(self, *args):
'name': 'Count'
}]
}
},
'sort': {
'name': 'Count',
'desc': True
}
}, {
'sort': {
'key': 'Count',
'desc': True
}
}]
}
}

Expand Down

0 comments on commit 37b0cc5

Please sign in to comment.