diff --git a/bindings/python/tests/test_html.py b/bindings/python/tests/test_html.py index 408ed34ac..a70bd828a 100644 --- a/bindings/python/tests/test_html.py +++ b/bindings/python/tests/test_html.py @@ -54,7 +54,8 @@ def get_surrounding_text(element): def has_surrounding_text(element): return [ - text is not None and text.strip() != "" for text in get_surrounding_text(element) + text is not None and text.strip() != "" + for text in get_surrounding_text(element) ] def has_surrounding_spaces(element): @@ -69,7 +70,9 @@ def format_whitespace(slots): def format_element(element): return "<{}{}>".format( element.tag, - "".join(f' {key}="{val}"' for key, val in element.items() if key != "x-test-id"), + "".join( + f' {key}="{val}"' for key, val in element.items() if key != "x-test-id" + ), ) def clean_html(src):