Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

generate-integration-docs-screenshot: Remove unused function parameter.

Niloth Pde0c24fdb826
diff --git a/tools/screenshots/generate-integration-docs-screenshot b/tools/screenshots/generate-integration-docs-screenshot
index 172308f0243..06c32657b16 100755
--- a/tools/screenshots/generate-integration-docs-screenshot
+++ b/tools/screenshots/generate-integration-docs-screenshot
@@ -140,9 +140,7 @@ def custom_headers(headers_json: str) -> dict[str, str]:
)
-def send_bot_mock_message(
- bot: UserProfile, integration: Integration, fixture_path: str, config: BaseScreenshotConfig
-) -> None:
+def send_bot_mock_message(bot: UserProfile, integration: Integration, fixture_path: str) -> None:
# Delete all messages, so new message is the only one it's message group
Message.objects.filter(realm_id=bot.realm_id, sender=bot).delete()
data, _, _, _ = get_fixture_info(fixture_path)
@@ -255,7 +253,7 @@ def generate_screenshot_from_config(
)
message_sent = send_bot_payload_message(bot, integration, fixture_path, screenshot_config)
else:
- send_bot_mock_message(bot, integration, fixture_path, screenshot_config)
+ send_bot_mock_message(bot, integration, fixture_path)
message_sent = True
if message_sent:
capture_last_message_screenshot(bot, image_path)