Skip to content

Commit

Permalink
Update securedrop/tests/test_i18n.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cory Francis Myers <[email protected]>
  • Loading branch information
skyvine and cfm authored Feb 22, 2023
1 parent 9d36404 commit ba8d368
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions securedrop/tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ def verify_i18n(app):
assert 'hreflang="fr-FR"' in locales

c.get("/?l=ar")
# We have to render a template that inherits from "base.html" so that "tab_title" will be
# set. But we're just checking that when a page is rendered in an RTL language the
# directionality is correct, so it doesn't matter which template we render.
base = render_template("error.html", error={})
assert 'dir="rtl"' in base

Expand Down

0 comments on commit ba8d368

Please sign in to comment.