Merge pull request #14796 from edx/ahsan/ECOM-4776-Account-settings-page-load-and-create-user-profile
Account settings page should load and create student user profile
This commit is contained in:
@@ -15,6 +15,7 @@ from nose.plugins.attrib import attr
|
||||
from openedx.core.djangoapps.dark_lang.models import DarkLangConfig
|
||||
from openedx.core.djangoapps.lang_pref import LANGUAGE_KEY
|
||||
from openedx.core.djangoapps.user_api.preferences.api import set_user_preference
|
||||
from student.models import UserProfile
|
||||
from student.tests.factories import UserFactory
|
||||
|
||||
|
||||
@@ -118,6 +119,7 @@ class I18nRegressionTests(BaseI18nTestCase):
|
||||
|
||||
def test_unreleased_lang_resolution(self):
|
||||
# Regression test; LOC-85
|
||||
UserProfile.objects.create(user=self.user)
|
||||
self.release_languages('fa')
|
||||
self.user_login()
|
||||
|
||||
@@ -134,6 +136,7 @@ class I18nRegressionTests(BaseI18nTestCase):
|
||||
self.assert_tag_has_attr(response.content, "html", "lang", "fa-ir")
|
||||
|
||||
def test_preview_lang(self):
|
||||
UserProfile.objects.create(user=self.user)
|
||||
self.user_login()
|
||||
|
||||
# Regression test; LOC-87
|
||||
@@ -169,6 +172,7 @@ class I18nLangPrefTests(BaseI18nTestCase):
|
||||
"""
|
||||
def setUp(self):
|
||||
super(I18nLangPrefTests, self).setUp()
|
||||
UserProfile.objects.create(user=self.user)
|
||||
self.user_login()
|
||||
|
||||
def test_lang_preference(self):
|
||||
|
||||
Reference in New Issue
Block a user