integration-docs: Add jira-plugin screenshot config and image.

Temporarily exclude jira-plugin from `test_integration_doc_endpoints`,
until the doc is updated.

The screenshot for this integration is added separately since this
adds a new screenshot for an integration whose doc is in the
python-zulip-api repo.
Since this breaks the sync between the docs and the screenshots, an
exclusion is added to make the tests pass.
This commit is contained in:
Niloth P
2025-07-30 14:46:12 +05:30
committed by Tim Abbott
parent 883c27e991
commit f6e847d026
4 changed files with 10 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@@ -73,6 +73,7 @@ FIXTURELESS_INTEGRATIONS_WITH_SCREENSHOTS: list[str] = [
"github-actions",
"google-calendar",
"jenkins",
"jira-plugin",
"mastodon",
"mercurial",
"nagios",
@@ -749,10 +750,7 @@ NO_SCREENSHOT_CONFIG = (
"twitter",
}
# Python API Integrations that do not currently have screenshots in docs
| {
"git",
"jira-plugin",
}
| {"git"}
| NO_SCREENSHOT_WEBHOOKS
| hubot_integration_names
)

View File

@@ -417,7 +417,7 @@ class DocPageTest(ZulipTestCase):
# for the PythonAPIIntegrations, so we cannot avoid going out of sync
# when adding/deleting screenshots.
# Use this set to temporarily add exclusions to this test.
exception_images: set[str] = {}
exception_images: set[str] = {"jira-plugin/001.png"}
images_in_dir.update(exception_images)
images_in_docs.update(exception_images)

View File

@@ -104,6 +104,13 @@ JENKINS = ScreenshotContent(
content=f"**Build:** [#{REVISION_NUMBER}](): FAILURE :cross_mark:",
)
JIRA_PLUGIN = ScreenshotContent(
topic=f"{TICKET_NUMBER}: {TASK_TITLE}",
content=f"""{BO_NAME} **created** [{TICKET_NUMBER}]() - priority Medium, assigned to @**{KEVIN_NAME}**:
> {TASK_DESCRIPTION}""",
)
MASTODON = ScreenshotContent(
topic="MIT Technology Review",
content=f"""**[Dont let hype about AI agents get ahead of reality](https://www.technologyreview.com/2025/07/03/1119545/dont-let-hype-about-ai-agents-get-ahead-of-reality/)**