Skip to content

Commit

Permalink
improvement(test manager/user vision/perms): 测试用户可见性及权限
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyueLongguikeji committed Dec 28, 2019
1 parent bbf904e commit 763b997
Show file tree
Hide file tree
Showing 5 changed files with 1,056 additions and 7 deletions.
4 changes: 2 additions & 2 deletions executer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ def func(self, *args, fcn=func_name, **kwargs):

def single_cli_factory(executer_cls):
'''
gen CLI class with single executer
gen CLI class with single executer
可运行executer内的非标准接口
'''
class CLI_CLASS(cli_factory([executer_cls])): # pylint: disable=abstract-method
class CLI_CLASS(cli_factory([executer_cls])): # pylint: disable=abstract-method, invalid-name, missing-class-docstring
def __getattribute__(self, name):
try:
return super().__getattribute__(name)
Expand Down
2 changes: 1 addition & 1 deletion test/tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ def test_data_users(self):
res2 = client.get(reverse('siteapi:user_list'))
usernames = [i['user']['username'] for i in res2.json()['results']]
expect = [str(j) for j in range(13899990001, 13899990011)]
self.assertEqual(usernames, expect)
self.assertEqual(usernames[:10], expect)
Loading

0 comments on commit 763b997

Please sign in to comment.