Skip to content

Commit

Permalink
Add width param to expected test output
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorns committed Nov 21, 2023
1 parent b553b76 commit 03bda22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_package/unit/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_renderer_header_only_sets_first_title():
def test_renderer_image_external():
test_image_src = "http://example.com/image.jpg"
test_image_markup = (
'<ac:image ac:alt=""><ri:url ri:value="{}"></ri:url>\n'
'<ac:image ac:alt="" ac:width="764"><ri:url ri:value="{}"></ri:url>\n'
"</ac:image>\n".format(test_image_src)
)

Expand All @@ -220,7 +220,7 @@ def test_renderer_image_external_alt_and_title():
test_image_alt = "alt text"
test_image_title = "title"
test_image_markup = (
'<ac:image ac:alt="{}" ac:title="{}"><ri:url ri:value="{}"></ri:url>\n'
'<ac:image ac:alt="{}" ac:title="{}" ac:width="764"><ri:url ri:value="{}"></ri:url>\n'
"</ac:image>\n".format(test_image_alt, test_image_title, test_image_src)
)

Expand All @@ -236,7 +236,7 @@ def test_renderer_image_internal_absolute():
test_image_file = "image.jpg"
test_image_src = "/home/test/images/" + test_image_file
test_image_markup = (
'<ac:image ac:alt=""><ri:attachment ri:filename="{}"></ri:attachment>\n'
'<ac:image ac:alt="" ac:width="764"><ri:attachment ri:filename="{}"></ri:attachment>\n'
"</ac:image>\n".format(test_image_file)
)

Expand All @@ -250,7 +250,7 @@ def test_renderer_image_internal_relative():
test_image_file = "image.jpg"
test_image_src = "test/images/" + test_image_file
test_image_markup = (
'<ac:image ac:alt=""><ri:attachment ri:filename="{}"></ri:attachment>\n'
'<ac:image ac:alt="" ac:width="764"><ri:attachment ri:filename="{}"></ri:attachment>\n'
"</ac:image>\n".format(test_image_file)
)

Expand Down

0 comments on commit 03bda22

Please sign in to comment.