Scroll view widget

This commit is contained in:
Will McGugan
2022-05-31 10:48:40 +01:00
parent d71718e784
commit 96c013aa39
6 changed files with 122 additions and 27 deletions

View File

@@ -90,7 +90,7 @@ def test_did_you_mean_for_css_property_names(
_, help_text = err.value.errors.rules[0].errors[0] # type: Any, HelpText
displayed_css_property_name = css_property_name.replace("_", "-")
expected_summary = f"Invalid CSS property [i]{displayed_css_property_name}[/]"
expected_summary = f"Invalid CSS property {displayed_css_property_name!r}"
if expected_property_name_suggestion:
expected_summary += f'. Did you mean "{expected_property_name_suggestion}"?'
assert help_text.summary == expected_summary