mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
test_docs: Add support for excluding certain integration screenshots.
The integration doc and the screenshot images are in different repos. So, we cannot avoid going out of sync when adding or deleting image files. Added a new set to allow temporarily adding exclusions to the `test_integration_doc_endpoints` test.
This commit is contained in:
@@ -413,6 +413,14 @@ class DocPageTest(ZulipTestCase):
|
||||
not in (image_path := os.path.relpath(os.path.join(root, file), directory))
|
||||
}
|
||||
|
||||
# The integration docs and the screenshot images are in different repos
|
||||
# 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] = {}
|
||||
images_in_dir.update(exception_images)
|
||||
images_in_docs.update(exception_images)
|
||||
|
||||
self.assertEqual(
|
||||
images_in_dir,
|
||||
images_in_docs,
|
||||
|
Reference in New Issue
Block a user