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
d15e192b
Commit
d15e192b
authored
Mar 24, 2016
by
Simon Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to remove mulitple page tags on mako templates
parent
33bff3b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
common/djangoapps/student/tests/tests.py
+3
-2
lms/templates/dashboard/_dashboard_certificate_information.html
+1
-2
lms/templates/dashboard/_dashboard_xseries_info.html
+1
-2
No files found.
common/djangoapps/student/tests/tests.py
View file @
d15e192b
...
@@ -9,6 +9,7 @@ from datetime import datetime, timedelta
...
@@ -9,6 +9,7 @@ from datetime import datetime, timedelta
from
urlparse
import
urljoin
from
urlparse
import
urljoin
import
pytz
import
pytz
from
markupsafe
import
escape
from
mock
import
Mock
,
patch
from
mock
import
Mock
,
patch
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
pyquery
import
PyQuery
as
pq
from
pyquery
import
PyQuery
as
pq
...
@@ -404,7 +405,7 @@ class DashboardTest(ModuleStoreTestCase):
...
@@ -404,7 +405,7 @@ class DashboardTest(ModuleStoreTestCase):
self
.
assertNotIn
(
'Add Certificate to LinkedIn'
,
response
.
content
)
self
.
assertNotIn
(
'Add Certificate to LinkedIn'
,
response
.
content
)
response_url
=
'http://www.linkedin.com/profile/add?_ed='
response_url
=
'http://www.linkedin.com/profile/add?_ed='
self
.
assertNotContains
(
response
,
response_url
)
self
.
assertNotContains
(
response
,
escape
(
response_url
)
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'CERTIFICATES_HTML_VIEW'
:
False
})
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'CERTIFICATES_HTML_VIEW'
:
False
})
...
@@ -452,7 +453,7 @@ class DashboardTest(ModuleStoreTestCase):
...
@@ -452,7 +453,7 @@ class DashboardTest(ModuleStoreTestCase):
'pfCertificationUrl=www.edx.org&'
'pfCertificationUrl=www.edx.org&'
'source=o'
'source=o'
)
)
self
.
assertContains
(
response
,
e
xpected_url
)
self
.
assertContains
(
response
,
e
scape
(
expected_url
)
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@ddt.data
(
ModuleStoreEnum
.
Type
.
mongo
,
ModuleStoreEnum
.
Type
.
split
)
@ddt.data
(
ModuleStoreEnum
.
Type
.
mongo
,
ModuleStoreEnum
.
Type
.
split
)
...
...
lms/templates/dashboard/_dashboard_certificate_information.html
View file @
d15e192b
<
%
page
expression_filter=
"h"
/>
<
%
page
expression_filter=
"h"
args=
"cert_status, course_overview, enrollment"
/>
<
%
page
args=
"cert_status, course_overview, enrollment"
/>
<
%!
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
ugettext
as
_
...
...
lms/templates/dashboard/_dashboard_xseries_info.html
View file @
d15e192b
<
%
page
expression_filter=
"h"
/>
<
%
page
expression_filter=
"h"
args=
"program_data, enrollment_mode, display_category"
/>
<
%
page
args=
"program_data, enrollment_mode, display_category"
/>
<
%!
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
...
...
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