Skip to content

Commit

Permalink
update mock modules for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aayars committed Aug 6, 2023
1 parent 44234b2 commit 48a6f9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,3 @@ noisemaker.presets
:members:
:undoc-members:
:show-inheritance:

noisemaker.old_presets
----------------------

.. automodule:: noisemaker.old_presets
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,5 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['PIL', 'loguru', 'numpy', 'opensimplex', 'pyfastnoisesimd', 'tensorflow', 'tensorflow_addons', 'tensorflow_graphics', 'tensorflow_graphics.image', 'tensorflow_graphics.image.color_space', 'tensorflow_graphics.image.color_space.linear_rgb', 'tensorflow_graphics.image.color_space.srgb', 'skimage.transform', 'skimage.util']
MOCK_MODULES = ['PIL', 'colorthief', 'loguru', 'numpy', 'opensimplex', 'pyfastnoisesimd', 'tensorflow', 'tensorflow_addons', 'tensorflow_graphics', 'tensorflow_graphics.image', 'tensorflow_graphics.image.color_space', 'tensorflow_graphics.image.color_space.linear_rgb', 'tensorflow_graphics.image.color_space.srgb', 'skimage.transform', 'skimage.util']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

0 comments on commit 48a6f9a

Please sign in to comment.