Skip to content

Commit

Permalink
Fix new typos for typos 1.29
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jan 1, 2025
1 parent f357e5c commit f91c7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion course/page/inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pages/test_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit f91c7a8

Please sign in to comment.