Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
310ddd7a
Commit
310ddd7a
authored
Jan 05, 2017
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade edx-lint to 0.5.2
This allows us to upgrade from pylint 1.5.4 to 1.6.4.
parent
4048e383
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
course_discovery/apps/api/serializers.py
+1
-1
course_discovery/apps/api/tests/test_serializers.py
+1
-1
course_discovery/apps/publisher/emails.py
+1
-1
course_discovery/apps/publisher_comments/emails.py
+2
-2
requirements/test.txt
+1
-1
No files found.
course_discovery/apps/api/serializers.py
View file @
310ddd7a
...
...
@@ -806,7 +806,7 @@ class FlattenedCourseRunWithCourseSerializer(CourseRunSerializer):
else
:
seats
[
seat
.
type
][
key
]
=
SeatSerializer
(
seat
)
.
data
[
key
]
for
credit_attr
in
seats
[
'credit'
]
.
keys
()
:
for
credit_attr
in
seats
[
'credit'
]:
seats
[
'credit'
][
credit_attr
]
=
','
.
join
([
str
(
e
)
for
e
in
seats
[
'credit'
][
credit_attr
]])
return
seats
...
...
course_discovery/apps/api/tests/test_serializers.py
View file @
310ddd7a
...
...
@@ -402,7 +402,7 @@ class FlattenedCourseRunWithCourseSerializerTests(TestCase): # pragma: no cover
else
:
seats
[
seat
.
type
][
key
]
=
SeatSerializer
(
seat
)
.
data
[
key
]
for
credit_attr
in
seats
[
'credit'
]
.
keys
()
:
for
credit_attr
in
seats
[
'credit'
]:
seats
[
'credit'
][
credit_attr
]
=
','
.
join
([
str
(
e
)
for
e
in
seats
[
'credit'
][
credit_attr
]])
return
seats
...
...
course_discovery/apps/publisher/emails.py
View file @
310ddd7a
...
...
@@ -36,7 +36,7 @@ def send_email_for_change_state(course_run):
template
=
get_template
(
html_template
)
html_content
=
template
.
render
(
context
)
subject
=
_
(
'Course Run {title}-{pacing_type}-{start} state has been changed.'
)
.
format
(
subject
=
_
(
'Course Run {title}-{pacing_type}-{start} state has been changed.'
)
.
format
(
# pylint: disable=no-member
title
=
course_run
.
course
.
title
,
pacing_type
=
course_run
.
get_pacing_type_display
(),
start
=
course_run
.
start
.
strftime
(
'
%
B
%
d,
%
Y'
)
if
course_run
.
start
else
''
...
...
course_discovery/apps/publisher_comments/emails.py
View file @
310ddd7a
...
...
@@ -36,7 +36,7 @@ def send_email_for_comment(comment, created=False):
# Translators: subject_desc will be choice from ('New comment added', 'Comment updated'),
# 'pacing_type' will be choice from ('instructor-paced', 'self-paced'),
# 'title' and 'start' will be the value of course title & start date fields.
subject
=
_
(
'{subject_desc} in course run: {title}-{pacing_type}-{start}'
)
.
format
(
subject
=
_
(
'{subject_desc} in course run: {title}-{pacing_type}-{start}'
)
.
format
(
# pylint: disable=no-member
subject_desc
=
subject_desc
,
title
=
course
.
title
,
pacing_type
=
publisher_obj
.
get_pacing_type_display
(),
...
...
@@ -48,7 +48,7 @@ def send_email_for_comment(comment, created=False):
# Translators: 'subject_desc' will be choice from ('New comment added', 'Comment updated')
# and 'title' will be the value of course title field.
subject
=
_
(
'{subject_desc} in Course: {title}'
)
.
format
(
subject
=
_
(
'{subject_desc} in Course: {title}'
)
.
format
(
# pylint: disable=no-member
subject_desc
=
subject_desc
,
title
=
course
.
title
)
...
...
requirements/test.txt
View file @
310ddd7a
...
...
@@ -4,7 +4,7 @@
coverage==4.2
ddt==1.1.0
django-nose==1.4.4
edx-lint==0.5.
1
edx-lint==0.5.
2
factory-boy==2.7.0
freezegun==0.3.7
lxml==3.6.1
...
...
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