Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9f46d9f0
Commit
9f46d9f0
authored
Jun 26, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regression test: dark lang stays set through multiple pages
parent
cf80c96f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lms/djangoapps/courseware/tests/test_i18n.py
+3
-0
No files found.
lms/djangoapps/courseware/tests/test_i18n.py
View file @
9f46d9f0
...
@@ -186,6 +186,9 @@ class I18nLangPrefTests(BaseI18nTestCase):
...
@@ -186,6 +186,9 @@ class I18nLangPrefTests(BaseI18nTestCase):
# Verify preview-lang takes precedence
# Verify preview-lang takes precedence
response
=
self
.
client
.
get
(
'{}?preview-lang=eo'
.
format
(
self
.
url
))
response
=
self
.
client
.
get
(
'{}?preview-lang=eo'
.
format
(
self
.
url
))
self
.
assert_tag_has_attr
(
response
.
content
,
"html"
,
"lang"
,
'eo'
)
self
.
assert_tag_has_attr
(
response
.
content
,
"html"
,
"lang"
,
'eo'
)
# Hitting another page should keep the dark language set.
response
=
self
.
client
.
get
(
reverse
(
'courses'
))
self
.
assert_tag_has_attr
(
response
.
content
,
"html"
,
"lang"
,
"eo"
)
# Clearing language must set language back to preference language
# Clearing language must set language back to preference language
response
=
self
.
client
.
get
(
'{}?clear-lang'
.
format
(
self
.
url
))
response
=
self
.
client
.
get
(
'{}?clear-lang'
.
format
(
self
.
url
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment