зеркало из https://github.com/mozilla/bedrock.git
This commit is contained in:
Родитель
bb05b298c7
Коммит
d4920b3fa7
|
@ -450,7 +450,7 @@ def mozilla_instagram_url(ctx):
|
|||
|
||||
For DE this would output:
|
||||
|
||||
https://www.instagram.com/unfcktheinternet/
|
||||
https://www.instagram.com/mozilla_deutschland/
|
||||
|
||||
"""
|
||||
locale = getattr(ctx["request"], "locale", "en-US")
|
||||
|
|
|
@ -464,7 +464,7 @@ class TestMozillaInstagramUrl(TestCase):
|
|||
|
||||
def test_mozilla_instagram_url_german(self):
|
||||
"""de locale, a local account"""
|
||||
assert self._render("de") == "https://www.instagram.com/unfcktheinternet/"
|
||||
assert self._render("de") == "https://www.instagram.com/mozilla_deutschland/"
|
||||
|
||||
def test_mozilla_instagram_url_other_locale(self):
|
||||
"""No account for locale, fallback to default account"""
|
||||
|
|
|
@ -968,7 +968,7 @@ MOZILLA_TWITTER_ACCOUNTS = {
|
|||
# Official Firefox Instagram accounts
|
||||
MOZILLA_INSTAGRAM_ACCOUNTS = {
|
||||
"en-US": "https://www.instagram.com/mozilla/",
|
||||
"de": "https://www.instagram.com/unfcktheinternet/",
|
||||
"de": "https://www.instagram.com/mozilla_deutschland/",
|
||||
}
|
||||
|
||||
# Firefox Accounts product links
|
||||
|
|
Загрузка…
Ссылка в новой задаче