Skip to content

Commit

Permalink
eyal cr
Browse files Browse the repository at this point in the history
  • Loading branch information
maimorag committed Jun 6, 2024
1 parent 6ed64ec commit b2a675a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions demisto_sdk/commands/validate/tests/RM_validators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ def test_ImagePathIntegrationValidator_is_valid_invalid_case():
),
]
expected = (
"Invalid image path(s) detected. Please use relative paths instead in the following links:"
"\nhttps://www.example.com/images/example_image.jpgRelative image paths found outside the pack's "
" Invalid image path(s) detected. Please use relative paths instead in the following links:"
"\nhttps://www.example.com/images/example_image.jpg Relative image paths found outside the pack's "
"doc_files directory. Please move the following images to the doc_files directory:"
"\n../../content/image.jpg. See https://xsoar.pan.dev/docs/integrations/integration-docs#images"
" for further info on how to add images to pack markdown files."
Expand Down Expand Up @@ -533,8 +533,8 @@ def test_ImagePathOnlyReadMeValidator_is_valid_invalid_case():
),
]
expected = (
"Invalid image path(s) detected. Please use relative paths instead in the following links:"
"\nhttps://www.example.com/images/example_image.jpgRelative image paths found outside the pack's"
" Invalid image path(s) detected. Please use relative paths instead in the following links:"
"\nhttps://www.example.com/images/example_image.jpg Relative image paths found outside the pack's"
" doc_files directory. Please move the following images to the doc_files"
" directory:\n../../content/image.jpg."
" See https://xsoar.pan.dev/docs/integrations/integration-docs#images for further info on"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def verify_absolute_images_not_exist(self, content_item) -> str:
]

return (
"Invalid image path(s) detected. Please use relative paths instead in the following links:\n"
" Invalid image path(s) detected. Please use relative paths instead in the following links:\n"
+ "\n".join(absolute_links)
)
return ""
Expand Down Expand Up @@ -110,7 +110,7 @@ def verify_relative_saved_in_doc_files(self, content_item) -> str:
]
if invalid_links:
return (
"Relative image paths found outside the pack's doc_files directory."
" Relative image paths found outside the pack's doc_files directory."
" Please move the following images to the doc_files directory:\n"
+ "\n".join(invalid_links)
)
Expand Down

0 comments on commit b2a675a

Please sign in to comment.