Skip to content

Commit

Permalink
remove broken test because attribute is always defined
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Oct 12, 2018
1 parent 4424c2c commit c81876a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions securedrop/tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,6 @@ def test_i18n(journalist_app, config):
verify_i18n(app)


def test_verify_default_locale_en_us_if_not_defined_in_config(config):
class Config:
def __getattr__(self, name):
if name == 'DEFAULT_LOCALE':
raise AttributeError()
return getattr(config, name)
not_translated = 'code hello i18n'
with source_app.create_app(Config()).test_client() as c:
c.get('/')
assert not_translated == gettext(not_translated)


def test_locale_to_rfc_5646():
assert i18n.locale_to_rfc_5646('en') == 'en'
assert i18n.locale_to_rfc_5646('en-US') == 'en'
Expand Down

0 comments on commit c81876a

Please sign in to comment.