generate-integration-docs-screenshot: Ensure puppeteer is installed.

This commit is contained in:
Puneeth Chaganti 2020-04-17 13:01:49 +05:30 committed by Tim Abbott
parent dd6966b9af
commit 4719226d0f
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@ from zerver.lib.actions import do_change_avatar_fields
from zerver.lib.integrations import WebhookIntegration, INTEGRATIONS, split_fixture_path from zerver.lib.integrations import WebhookIntegration, INTEGRATIONS, split_fixture_path
from zerver.lib.webhooks.common import get_fixture_http_headers from zerver.lib.webhooks.common import get_fixture_http_headers
from setup.generate_zulip_bots_static_files import create_png_from_svg from setup.generate_zulip_bots_static_files import create_png_from_svg
from tools.lib.test_script import prepare_puppeteer_run
def create_integration_bot(integration_name: str) -> UserProfile: def create_integration_bot(integration_name: str) -> UserProfile:
realm = get_realm('zulip') realm = get_realm('zulip')
@ -93,6 +94,8 @@ parser = argparse.ArgumentParser()
parser.add_argument('fixture', type=webhook_json_fixture, help='Path to the fixture to use') parser.add_argument('fixture', type=webhook_json_fixture, help='Path to the fixture to use')
options = parser.parse_args() options = parser.parse_args()
prepare_puppeteer_run()
integration_name, fixture_name = split_fixture_path(options.fixture) integration_name, fixture_name = split_fixture_path(options.fixture)
integration = get_integration(integration_name) integration = get_integration(integration_name)
bot = create_integration_bot(integration.name) bot = create_integration_bot(integration.name)