Skip to content

Commit

Permalink
Merge pull request #112 from longguikeji/sy/vision_perm_test
Browse files Browse the repository at this point in the history
improvement(manager perm visibility): 可见性及权限
  • Loading branch information
skoogi authored Jan 3, 2020
2 parents bbf904e + 1589b56 commit 0de7c5e
Show file tree
Hide file tree
Showing 5 changed files with 1,262 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 0de7c5e

Please sign in to comment.