diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/conversion_tests.py | 2 | ||||
| -rw-r--r-- | tests/html/strip_empty_tests.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py index 0d08b20..71fbbc7 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -389,7 +389,7 @@ def images_have_alt_tags_if_available(): def can_define_custom_conversion_for_images(): def convert_image(image): with image.open() as image_file: - return [html.self_closing_element("img", {"alt": image_file.read().decode("ascii")})] + return [html.element("img", {"alt": image_file.read().decode("ascii")})] image = documents.image(alt_text=None, content_type="image/png", open=lambda: io.BytesIO(b"abc")) result = convert_document_element_to_html(image, convert_image=convert_image) diff --git a/tests/html/strip_empty_tests.py b/tests/html/strip_empty_tests.py index eb28f30..b72b50a 100644 --- a/tests/html/strip_empty_tests.py +++ b/tests/html/strip_empty_tests.py @@ -54,8 +54,8 @@ def empty_children_are_removed(): @istest def self_closing_elements_are_never_empty(): assert_equal( - [html.self_closing_element("br")], - html.strip_empty([html.self_closing_element("br")])) + [html.element("br")], + html.strip_empty([html.element("br")])) @istest |
