Added Kosovo in django country list.
ECOM-4292
This commit is contained in:
committed by
Clinton Blackburn
parent
8b068d9449
commit
2ec3bcd22e
@@ -2584,6 +2584,7 @@ INVOICE_PAYMENT_INSTRUCTIONS = "This is where you can\nput directions on how peo
|
|||||||
COUNTRIES_OVERRIDE = {
|
COUNTRIES_OVERRIDE = {
|
||||||
# Taiwan is specifically not translated to avoid it being translated as "Taiwan (Province of China)"
|
# Taiwan is specifically not translated to avoid it being translated as "Taiwan (Province of China)"
|
||||||
"TW": "Taiwan",
|
"TW": "Taiwan",
|
||||||
|
'XK': _('Kosovo'),
|
||||||
}
|
}
|
||||||
|
|
||||||
# which access.py permission name to check in order to determine if a course is visible in
|
# which access.py permission name to check in order to determine if a course is visible in
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ SORTED_COUNTRIES = [
|
|||||||
(u"KZ", u"Kazakhstan"),
|
(u"KZ", u"Kazakhstan"),
|
||||||
(u"KE", u"Kenya"),
|
(u"KE", u"Kenya"),
|
||||||
(u"KI", u"Kiribati"),
|
(u"KI", u"Kiribati"),
|
||||||
|
(u"XK", u"Kosovo"),
|
||||||
(u"KW", u"Kuwait"),
|
(u"KW", u"Kuwait"),
|
||||||
(u"KG", u"Kyrgyzstan"),
|
(u"KG", u"Kyrgyzstan"),
|
||||||
(u"LA", u"Laos"),
|
(u"LA", u"Laos"),
|
||||||
|
|||||||
@@ -1713,6 +1713,15 @@ class RegistrationViewTest(ThirdPartyAuthTestMixin, UserAPITestCase):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def test_country_overrides(self):
|
||||||
|
"""Test that overridden countries are available in country list."""
|
||||||
|
# Retrieve the registration form description
|
||||||
|
with override_settings(REGISTRATION_EXTRA_FIELDS={"country": "required"}):
|
||||||
|
response = self.client.get(self.url)
|
||||||
|
self.assertHttpOK(response)
|
||||||
|
|
||||||
|
self.assertContains(response, 'Kosovo')
|
||||||
|
|
||||||
|
|
||||||
@httpretty.activate
|
@httpretty.activate
|
||||||
@ddt.ddt
|
@ddt.ddt
|
||||||
|
|||||||
Reference in New Issue
Block a user