mirror of https://github.com/zulip/zulip.git
generate-integration-docs-screenshot: Ensure puppeteer is installed.
This commit is contained in:
parent
dd6966b9af
commit
4719226d0f
|
@ -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.webhooks.common import get_fixture_http_headers
|
||||
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:
|
||||
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')
|
||||
options = parser.parse_args()
|
||||
|
||||
prepare_puppeteer_run()
|
||||
|
||||
integration_name, fixture_name = split_fixture_path(options.fixture)
|
||||
integration = get_integration(integration_name)
|
||||
bot = create_integration_bot(integration.name)
|
||||
|
|
Loading…
Reference in New Issue