From f91c7a8f3a6d408da18363266b43c4f6d9ba06ac Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 1 Jan 2025 15:12:17 +0100 Subject: [PATCH] Fix new typos for typos 1.29 --- course/page/inline.py | 2 +- tests/test_pages/test_inline.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/course/page/inline.py b/course/page/inline.py index b595e7c3e..287917507 100644 --- a/course/page/inline.py +++ b/course/page/inline.py @@ -241,7 +241,7 @@ def get_length_attr_em(location: str, width_attr: str) -> float | None: raise ValidationError( string_concat( "%(location)s: ", - _("unrecogonized width attribute string: " + _("unrecognized width attribute string: " "'%(width_attr)s'")) % { "location": location, diff --git a/tests/test_pages/test_inline.py b/tests/test_pages/test_inline.py index 5af3e5f50..efff22382 100644 --- a/tests/test_pages/test_inline.py +++ b/tests/test_pages/test_inline.py @@ -724,7 +724,7 @@ def test_negative_width(self): self.assertSandboxNotHasValidPage(resp) self.assertResponseContextContains( resp, PAGE_ERRORS, - "blank1: 'width': unrecogonized width attribute string: '-4em'") + "blank1: 'width': unrecognized width attribute string: '-4em'") def test_negative_weight(self): markdown = (INLINE_MULTI_MARKDOWN_EMBEDDED_ATTR_PATTERN @@ -895,7 +895,7 @@ def test_embedded_width_attr(self): self.assertSandboxNotHasValidPage(resp) self.assertResponseContextContains( resp, PAGE_ERRORS, - "unrecogonized width attribute string: 'one'") + "unrecognized width attribute string: 'one'") markdown = (INLINE_MULTI_MARKDOWN_EMBEDDED_ATTR_PATTERN % {"attr1": "width: 15 pt",