From debb4f6f363626b6d9c49112ed2d174c30c0afd8 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 22 Oct 2023 19:08:16 +0200 Subject: [PATCH] [Docs] Wrap `generate_missing_docs` logic in `auto_mocks` block. It should be possible to synchronize the documented modules even on installations that don't have all the custom dependencies installed. --- generate_missing_docs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/generate_missing_docs.py b/generate_missing_docs.py index 7561b69447..db01b238d3 100644 --- a/generate_missing_docs.py +++ b/generate_missing_docs.py @@ -11,6 +11,7 @@ from platypush.message.event import Event from platypush.message.response import Response from platypush.plugins import Plugin from platypush.utils.manifest import Manifests +from platypush.utils.mock import auto_mocks def get_all_plugins(): @@ -159,10 +160,11 @@ def generate_responses_doc(): def main(): - generate_plugins_doc() - generate_backends_doc() - generate_events_doc() - generate_responses_doc() + with auto_mocks(): + generate_plugins_doc() + generate_backends_doc() + generate_events_doc() + generate_responses_doc() if __name__ == '__main__':