mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add __all__ attribute to Mock class for docs
This commit is contained in:
parent
5f1a93d966
commit
6eeca46158
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,8 @@ class Mock(object):
|
|||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
__all__ = []
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
ret = Mock()
|
||||
# If mocked function is used as a decorator, expose decorated function.
|
||||
|
@ -94,6 +96,7 @@ MOCK_MODULES = [
|
|||
'MySQLdb',
|
||||
'MySQLdb.cursors',
|
||||
'psutil',
|
||||
'psutil.version_info',
|
||||
'pycassa',
|
||||
'pymongo',
|
||||
'rabbitmq_server',
|
||||
|
|
Loading…
Add table
Reference in a new issue