From 1edbda07aba1c843eca3dc930f35195677422f60 Mon Sep 17 00:00:00 2001 From: Andreas Pelme Date: Sun, 23 Jun 2024 19:59:59 +0200 Subject: [PATCH] Fix some indentation in test_html2htpy. --- tests/test_html2htpy.py | 80 ++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/tests/test_html2htpy.py b/tests/test_html2htpy.py index cfd0737..a7deafe 100644 --- a/tests/test_html2htpy.py +++ b/tests/test_html2htpy.py @@ -8,7 +8,7 @@ def test_convert_default_shorthand_id_and_class() -> None: input = """
-

This is a paragraph.

+

This is a paragraph.

""" @@ -21,7 +21,7 @@ def test_convert_default_shorthand_id_and_class() -> None: def test_convert_explicit_id_class_syntas() -> None: input = """
-

This is a paragraph.

+

This is a paragraph.

""" @@ -33,8 +33,8 @@ def test_convert_explicit_id_class_syntas() -> None: nested_html = """
-

This is a nested element.

-

Another nested tag.

+

This is a nested element.

+

Another nested tag.

""" @@ -157,18 +157,18 @@ def test_convert_f_string_escaping() -> None: def test_convert_f_string_escaping_complex() -> None: input = """ -

{{ heading }}

-

Welcome to our cooking site, {{ user.name }}!

- -

Recipe of the Day: {{ recipe.name }}

-

{{ recipe.description }}

- -

Instructions:

-
    - {% for step in recipe.steps %} -
  1. {{ step }}
  2. - {% endfor %} -
+

{{ heading }}

+

Welcome to our cooking site, {{ user.name }}!

+ +

Recipe of the Day: {{ recipe.name }}

+

{{ recipe.description }}

+ +

Instructions:

+
    + {% for step in recipe.steps %} +
  1. {{ step }}
  2. + {% endfor %} +
""" @@ -182,9 +182,9 @@ def test_convert_f_string_escaping_complex() -> None: p[f"{ recipe.description }"], h3["Instructions:"], ol[ - \"\"\" {% for step in recipe.steps %} \"\"\", + \"\"\" {% for step in recipe.steps %} \"\"\", li[f"{ step }"], - \"\"\" {% endfor %} \"\"\", + \"\"\" {% endfor %} \"\"\", ], ] """ @@ -215,11 +215,11 @@ def test_convert_html_doctype() -> None: - Test Document + Test Document -

Header

-

Paragraph

+

Header

+

Paragraph

""" @@ -243,15 +243,15 @@ def test_convert_empty_elements() -> None: def test_convert_void_elements() -> None: input = """ -
- +
+
- +
-
+
""" actual = html2htpy(input, import_mode="no") @@ -270,8 +270,8 @@ def test_convert_custom_tag() -> None: def test_convert_malformed_html() -> None: input = """
-

Paragraph without closing tag -

Another div

+

Paragraph without closing tag +

Another div

""" @@ -293,12 +293,12 @@ def test_convert_attributes_without_values() -> None: def test_convert_complex_section() -> None: input = """ """ @@ -329,15 +329,15 @@ def test_convert_complex_svg() -> None: input = f""" + xmlns="http://www.w3.org/2000/svg" + fill="none" viewBox="0 0 24 24" + stroke-width="1.5" + stroke="currentColor" + class="w-6 h-6"> """