mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	generate-integration-docs-screenshot: Remove unused function parameter.
This commit is contained in:
		@@ -140,9 +140,7 @@ def custom_headers(headers_json: str) -> dict[str, str]:
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def send_bot_mock_message(
 | 
					def send_bot_mock_message(bot: UserProfile, integration: Integration, fixture_path: str) -> None:
 | 
				
			||||||
    bot: UserProfile, integration: Integration, fixture_path: str, config: BaseScreenshotConfig
 | 
					 | 
				
			||||||
) -> None:
 | 
					 | 
				
			||||||
    # Delete all messages, so new message is the only one it's message group
 | 
					    # 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()
 | 
					    Message.objects.filter(realm_id=bot.realm_id, sender=bot).delete()
 | 
				
			||||||
    data, _, _, _ = get_fixture_info(fixture_path)
 | 
					    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)
 | 
					        message_sent = send_bot_payload_message(bot, integration, fixture_path, screenshot_config)
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        send_bot_mock_message(bot, integration, fixture_path, screenshot_config)
 | 
					        send_bot_mock_message(bot, integration, fixture_path)
 | 
				
			||||||
        message_sent = True
 | 
					        message_sent = True
 | 
				
			||||||
    if message_sent:
 | 
					    if message_sent:
 | 
				
			||||||
        capture_last_message_screenshot(bot, image_path)
 | 
					        capture_last_message_screenshot(bot, image_path)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user